Summary| Tags| Feature: karate/UseCases/Uc_RenewalIntakeFees.feature| Intake Fees
Scenario: [1.1:289] TC001_SLA_REN_Intake_Fees_Main_License_Information_section
ms: 53468
>>
Background:
3
* url BaseURL
0
19:19:37.353 karate.env system property was: svamqa
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* callonce read('LoginDetails.feature') { strToken:'#(strToken)'}
642
8
* def amendmentTypeId = 1
0
9
* def waitFunc =
0
function(timeinMiliSeconds) { // load java type into js engine var Thread = Java.type('java.lang.Thread'); Thread.sleep(timeinMiliSeconds*1000); }
17
* def DueDate =
0
function(numberOfDays){ var date = new Date(); date.setDate(date.getDate() + (numberOfDays)); return date.toString() }
25
* def DueDateCheck = DueDate(7)
4
27
* def getcorporateStructureCodeFunc =
0
function(value){ if (value === 'Individual'){ return 1; } else { return 2; } }
38
* def getStatusIndOrgStatus =
0
function(value){ if (value === 'Individual'){ return true; } else { return false; } }
49
* def getIndORgCodeFunc =
0
function(value1, value2){ if (value1 == 1 && value2 == 'Individual'){ return 1; } else if (value1 == 1 && value2 == 'Sole Propretior'){ return 2; } else if (value1 == 2 && value2 == 'Individual'){ return 1; } else if (value1 == 2 && value2 == 'Limited Liability Company'){ return 2; }else if (value1 == 2 && value2 == 'Corporation'){ return 3; }else if (value1 == 2 && value2 == 'Limited Liability Partnership'){ return 4; }else if (value1 == 2 && value2 == 'Limited Partnership'){ return 5; }else if (value1 == 2 && value2 == 'Partnership'){ return 6; }else if (value1 == 2 && value2 == 'Government'){ return 7; }else if (value1 == 2 && value2 == 'Sole Propretior'){ return 8; }else if (value1 == 2 && value2 == 'Trust'){ return 9; }else if (value1 == 2 && value2 == 'Estate'){ return 10; } else { return 1; } }
87
* def getFundDueDateMMYYDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
99
* def mmyydateFundDueDate = getFundDueDateMMYYDate(7)
3
100
And print mmyydateFundDueDate
0
19:19:38.006 [print] 11/22/2022
102
* def getAmendmentTypeIdFunc =
0
function(amendmentType){ if (amendmentType == 'ABC Officer'){ return 1; } else if (amendmentType == 'Additional Bar'){ return 2; } else if (amendmentType == 'Alteration'){ return 3; } else if (amendmentType == 'Alteration with Additional Bar'){ return 3; } }
121
* def waitFunc =
0
function(timeinMiliSeconds) { // load java type into js engine var Thread = Java.type('java.lang.Thread'); Thread.sleep(timeinMiliSeconds*1000); }
129
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
140
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
151
* def getMMMMDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MMMM dd, yyyy"); var date = new java.util.Date(); return sdf.format(date); }
161
* def mmmmdate = getMMMMDate()
0
163
* def getMMYYDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); return sdf.format(date); }
173
* def mmyydate = getMMYYDate()
0
175
* def getFundDueDateMMYYDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
187
* def mmyydateFundDueDate = getFundDueDateMMYYDate(7)
3
189
* def dateFnc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date( date.getTime() - java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
199
* def dateWithMonthsNameFnc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MMMM dd, yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date( date.getTime()); return sdf.format(dayAfter); }
208
* def dateWithMonthsName = dateWithMonthsNameFnc()
1
209
And print dateWithMonthsName
0
19:19:38.015 [print] November 15, 2022
217
* def IndOrgSelectionDropDown = 'Individual'
1
218
* def indOrgCode = getIndORgCodeFunc(IndOrgSelectionDropDown)
5
219
And print indOrgCode
0
19:19:38.022 [print] 1
220
* def isIndStatus = getStatusIndOrgStatus(IndOrgSelectionDropDown)
20
221
* def CorporateStructureDropDown = 'Individual'
0
222
* def CorporateStructureDropDownCode = getIndORgCodeFunc(indOrgCode,CorporateStructureDropDown)
2
223
And print CorporateStructureDropDownCode
0
19:19:38.046 [print] 1
224
* def firstName = 'Automation'
0
225
* def lastName = 'Automation'
0
226
* def legalName = firstName+ ' '+lastName
0
227
* def Address1 = 'Address1'
0
228
* def Address2 = 'Address2'
0
229
* def CityName = 'New York'
0
230
* def zipCode = '12345'
0
231
* def postalCode = '1234'
0
232
* def countryName = 'United States (US)'
0
233
* def emailId = 'automation@svam.com'
0
234
* def convictedOfCrime = '1'
0
235
* def percentageOfOwners = '20'
0
236
* def isFingerprintRequired = true
0
237
* def isFingerprintsApproved = true
0
238
* def isSignature = true
0
240
* def convictedOfCrime = '1'
0
241
* def PhoneNumber = '999-999-9999'
0
242
* def PhoneExtn = 1234
0
243
* def countryCode = '+91'
0
244
* def stateCode = 40
0
246
* def mainLicensePermitTypeId = 40
0
247
* def termInYears = 3
1
248
* def termDesc = 3+' Year (s)'
1
249
* def licenseFees = 960
0
250
* def fillingFees = 100
0
251
* def licAncillaryFees = 0
0
252
* def renewalFees = 30+''
0
253
* string productName = 'RestaurantBeer'+''
0
255
* def CountyId = 1
0
256
* def CountyName = 'New York'
0
257
* def totalFees = licenseFees+fillingFees+licAncillaryFees
1
258
* def splittedCityName = CityName.replaceAll(" ","")
4
260
* call read('LicensesCommonMethods.feature@IntakeLicensewithoutAssociatedLic') {}
11194
>>
karate.UseCases.LicensesCommonMethods
7745
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
1
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
1
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
2
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
6
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
1
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* App Intake *********************
290
* call read('LicensesCommonMethods.feature@GetCountyList') {}
6996
>>
karate.UseCases.LicensesCommonMethods
3945
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
117
Given path '/internalapi/api/reference'
0
118
* def dbSts = db.cleanHeap()
3782
119
And header authorization = 'Bearer ' + strToken
0
120
And header Content-Type = 'application/json;charset=utf-8'
0
121
And header Accept = 'text/plain'
0
# * def query = {name:countyzone&onlyActives:true}
123
And params {name:countyzone,onlyActives:true}
0
#And param onlyActives='true'
125
And request {}
2
126
When method get
155
19:19:48.260 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/reference?name=countyzone&onlyActives=true 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json;charset=utf-8 1 > Accept: text/plain 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:19:48.410 response time in milliseconds: 149 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:49:45 GMT 1 < Content-Length: 11712 {"values":[{"CountyId":1,"County":"New York","ShortName":"NEW","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T00:00:00","ModifiedBy":"esandoval","ModifiedDate":"2020-11-10T11:30:56.047"},{"CountyId":2,"County":"Kings","ShortName":"KING","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":3,"County":"Bronx","ShortName":"BRON","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":4,"County":"Queens","ShortName":"QUEE","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":5,"County":"Richmond","ShortName":"RICH","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":6,"County":"Nassau","ShortName":"NASS","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":7,"County":"Suffolk","ShortName":"SUFF","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":8,"County":"Westchester","ShortName":"WEST","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":9,"County":"Orange","ShortName":"ORAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":10,"County":"Putnam","ShortName":"PUTN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":11,"County":"Rockland","ShortName":"ROCK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":12,"County":"Albany","ShortName":"ALBA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":13,"County":"Clinton","ShortName":"CLIN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":14,"County":"Columbia","ShortName":"COLU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":15,"County":"Dutchess","ShortName":"DUTC","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":16,"County":"Essex","ShortName":"ESSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":17,"County":"Franklin","ShortName":"FRAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":18,"County":"Fulton","ShortName":"FULT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":19,"County":"Greene","ShortName":"GREE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":20,"County":"Hamilton","ShortName":"HAMI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":21,"County":"Montgomery","ShortName":"MONT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":22,"County":"Rensselaer","ShortName":"RENS","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":23,"County":"Saratoga","ShortName":"SARA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":24,"County":"Schenectady","ShortName":"SCHE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":25,"County":"Schoharie","ShortName":"SCHO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":26,"County":"Sullivan","ShortName":"SULL","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":27,"County":"Ulster","ShortName":"ULST","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":28,"County":"Warren","ShortName":"WARR","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":29,"County":"Washington","ShortName":"WASH","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":30,"County":"Allegany","ShortName":"ALLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":31,"County":"Cattaraugus","ShortName":"CATT","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":32,"County":"Chautauqua","ShortName":"CHAU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":33,"County":"Chemung","ShortName":"CHEM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":34,"County":"Erie","ShortName":"ERIE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":35,"County":"Genesee","ShortName":"GENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":36,"County":"Livingston","ShortName":"LIVI","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":37,"County":"Monroe","ShortName":"MONR","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":38,"County":"Niagara","ShortName":"NIAG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":39,"County":"Ontario","ShortName":"ONTA","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":40,"County":"Orleans","ShortName":"ORLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":41,"County":"Schuyler","ShortName":"SCHU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":42,"County":"Seneca","ShortName":"SENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":43,"County":"Steuben","ShortName":"STEU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":44,"County":"Wayne","ShortName":"WAYN","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":45,"County":"Wyoming","ShortName":"WYOM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":46,"County":"Yates","ShortName":"YATE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":47,"County":"Broome","ShortName":"BROO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":48,"County":"Chenango","ShortName":"CHEN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":49,"County":"Cortland","ShortName":"CORT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":50,"County":"Delaware","ShortName":"DELA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":51,"County":"Herkimer","ShortName":"HERK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":52,"County":"Jefferson","ShortName":"JEFF","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":53,"County":"Lewis","ShortName":"LEWI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":54,"County":"Madison","ShortName":"MADI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":55,"County":"Oneida","ShortName":"ONEI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":56,"County":"Onondaga","ShortName":"ONON","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":57,"County":"Oswego","ShortName":"OSWE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":58,"County":"Otsego","ShortName":"OTSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":59,"County":"St. Lawrence","ShortName":"ST L","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":60,"County":"Cayuga","ShortName":"CAYU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":61,"County":"Tioga","ShortName":"TIOG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":62,"County":"Tompkins","ShortName":"TOMP","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.6","ModifiedBy":null,"ModifiedDate":null}],"name":"countyzone","schema":[{"columnName":"CountyId","dataType":"int","maxLenght":null,"isRequired":true},{"columnName":"County","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ShortName","dataType":"nvarchar","maxLenght":10,"isRequired":false},{"columnName":"ZoneNo","dataType":"int","maxLenght":null,"isRequired":false},{"columnName":"IsActive","dataType":"bit","maxLenght":null,"isRequired":false},{"columnName":"CreatedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"CreatedDate","dataType":"datetime","maxLenght":null,"isRequired":false},{"columnName":"ModifiedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ModifiedDate","dataType":"datetime","maxLenght":null,"isRequired":false}]}
127
* configure continueOnStepFailure = true
0
128
Then status 200
0
129
And def values = response.values
0
130
* configure continueOnStepFailure = true
0
291
* def countyData = karate.jsonPath(values, "$[?(@.CountyId == '" + CountyId + "')]")
5
292
* def countyZone = countyData[0].ZoneNo
0
293
And print countyZone
0
19:19:48.502 [print] 1
294
Given path '/internalapi/api/licensing/selectapptype/savenewlicenseapp'
0
295
* def dbSts = db.cleanHeap()
267
296
And header authorization = 'Bearer ' + strToken
0
297
And header Content-Type = 'application/json; charset=utf-8'
0
298
And header Accept = 'application/json; text/plain;*/*'
0
#* def CountysId = <countyIds>
# And print CountysId
#* string CountysName = <countynames>
# And print CountysName
#* def mainLicensePermitTypeId = <LicensePermitTypeId>
# And print mainLicensePermitTypeId
#* string ProductType = <ProductTypes>
#* string LicenseDescription = <LicDescription>
# And print ProductType
309
And request {"mainLicensePermitTypeId":'#(mainLicensePermitTypeId)',"newPermitTypeIds":[],"combinedCraftId":null,"masterFileId":null,"isApplicableForTempPermit":false,"isNotQualified":false,"isChainRestaurant":false,"addBarList":[],"countyId":'#(CountyId)',"isApplicantCurrentLicensed":false,"isExistingManufacturer":false,"selectedLicense":null,"isAssociatedTempPermit":false}
0
311
When method post
163
19:19:48.771 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/selectapptype/savenewlicenseapp 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 327 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"mainLicensePermitTypeId":40,"newPermitTypeIds":[],"combinedCraftId":null,"masterFileId":null,"isApplicableForTempPermit":false,"isNotQualified":false,"isChainRestaurant":false,"addBarList":[],"countyId":1,"isApplicantCurrentLicensed":false,"isExistingManufacturer":false,"selectedLicense":null,"isAssociatedTempPermit":false} 19:19:48.932 response time in milliseconds: 161 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:49:45 GMT 1 < Content-Length: 234 [{"childAppId":null,"mainApplicationId":"NA-0111-22-119051","childApplicationId":null,"licensePermitTypeId":40,"description":"Restaurant-Beer","parentApplicationId":"NA-0111-22-119051","parentAppId":13850,"appId":13850,"formId":1165}]
312
* configure continueOnStepFailure = true
0
313
Then status 200
0
315
And def ApplicationId = response[0].mainApplicationId
0
316
And print ApplicationId
0
19:19:48.933 [print] NA-0111-22-119051
317
And match ApplicationId contains 'NA-'
0
319
* def currentYear = '-'+getYearFunc()+'-'+countyZone
2
320
And match ApplicationId contains currentYear
0
321
And def description = response[0].description
0
323
And def appId = response[0].appId
0
325
* def formId = response[0].formId
0
326
* def FormVersionId = response[0].FormVersionId
1
328
Given path '/internalapi/api/application/preview/'+appId
0
329
* def dbSts = db.cleanHeap()
140
330
And header authorization = 'Bearer ' + strToken
0
331
And header Content-Type = 'application/json; charset=utf-8'
0
332
And header Accept = 'application/json; text/plain;*/*'
0
333
And configure continueOnStepFailure = true
0
334
And request {}
0
335
When method get
154
19:19:49.078 request: 2 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13850 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > Content-Length: 2 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {} 19:19:49.231 response time in milliseconds: 153 2 < 200 2 < Content-Length: 185 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:49:45 GMT {"applicationId":"NA-0111-22-119051","submitDate":null,"licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Draft"},"isLicenseApplication":true,"isPreFilled":false}
336
* configure continueOnStepFailure = true
0
337
Then status 200
0
338
And def licStatus = response.appStatus.statusDescription
0
339
And print licStatus
0
19:19:49.232 [print] Draft
340
And match licStatus == 'Draft'
0
261
* def CountyName = "New York"
0
262
* call read('LicensesCommonMethods.feature@FillAndSaveApplicantInformationPage') {county:'#(CountyName)'}
3011
>>
karate.UseCases.LicensesCommonMethods
210
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
1
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
1
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
3
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
5
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
700
* def getDate =
1
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
709
Given path '/internalapi/api/licensing/app/static/applicantinfo/save/'+appId
1
710
And header Content-Type = 'application/json; charset=utf-8'
0
712
* def autoFirstName = firstName + getDate()
1
713
* def legalName = autoFirstName + lastName
0
714
And header Accept = 'application/json; text/plain;*/*'
0
715
And header authorization = 'Bearer ' + strToken
0
716
And request {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":'#(indOrgCode)',"corporateStructure":'#(CorporateStructureDropDownCode)',"firstName":'#(autoFirstName)',"lastName":'#(lastName)',"middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":'#(legalName)',"id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":'#(IndOrgSelectionDropDown)',"corporateStructureText":'#(CorporateStructureDropDown)',"isIndividual":'#(isIndStatus)'},"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"2","phoneTypeText":"Office","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}}
1
717
When method post
193
19:19:51.966 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/applicantinfo/save/13850 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2167 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":1,"corporateStructure":1,"firstName":"Automation20221115191951","lastName":"Automation","middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":"Automation20221115191951Automation","id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":"Individual","corporateStructureText":"Individual","isIndividual":true},"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"2","phoneTypeText":"Office","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}} 19:19:52.155 response time in milliseconds: 188 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:49:49 GMT 1 < Content-Length: 2191 {"businessInfo":{"id":0,"website":null,"isLicensed":false,"isAssociated":false,"businessEntity":{"id":3983,"individualOrganization":"1","corporateStructure":1,"isEmployeeForSoleProprietor":null,"firstName":"Automation20221115191951","lastName":"Automation","middleName":"AutoMidName","ssn":"","fein":"","legalName":"Automation20221115191951Automation","suffix":"1","corporateStructureText":"Individual","individualOrganizationText":"Individual","isIndividual":true},"address":{"addressId":29315,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"US","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"NY","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25227,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":7780,"phoneType":3,"countryCode":"91","phone":"999-999-9999","phoneExtension":"1234"}]}},"premisesInfo":{"id":13155,"dba":null,"countyId":1,"countyName":"New York","isDbaSearched":null,"isPremisesRequired":true,"licensePermitID":"","address":{"addressId":29316,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"US","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"NY","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25228,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":7781,"phoneType":2,"countryCode":"+91","phone":"999-999-9999","phoneExtension":"1234"}]}},"applicantDetail":{"id":9747,"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"isPhysicalChange":null,"applicantStatement":{"id":4288,"nameOfApplicant":null,"title":null,"signature":null,"date":null}}}
718
Then status 200
0
263
* call read('LicensesCommonMethods.feature@FillAndSavePrincipalPage') {}
8691
>>
karate.UseCases.LicensesCommonMethods
264
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
2
5
* def DbUtils = Java.type('utils.DbUtils')
1
6
* def db = new DbUtils(config)
1
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
20
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
7
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
745
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
754
Given path '/internalapi/api/licensing/app/static/principal/save/'+appId
1
755
And header Content-Type = 'application/json; charset=utf-8'
0
756
* def prncipalName = firstName + getDate1()
1
757
* def dt = licDate()
0
758
And header Accept = 'application/json; text/plain;*/*'
0
759
And header authorization = 'Bearer ' + strToken
0
760
And request {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":'#(convictedOfCrime)',"percentageOfOwners":'#(percentageOfOwners)',"isFingerprintRequired":'#(isFingerprintRequired)',"isFingerprintsApproved":'#(isFingerprintsApproved)',"title":"15","numberOfShares":"","isSignature":false,"date":'#(dt)',"address":{"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"stateId":'#(stateCode)',"county":'#(CountyName)',"city":"New York","zipCode":'#(zipCode)',"zip4":'#(postalCode)',"country":'#(countryName)',"stateName":'#(CityName)',"countryId":229,"zip":'#(zipCode)'},"person":{"personId":0,"firstName":'#(prncipalName)',"middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":'#(dt)',"age":"","choosedEntity":null,"ssnFormat":"","suffixText":"JR"},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":'#(emailId)',"confirmEmail":'#(emailId)'},"titleText":"Vice President","convictedOfCrimeText":"No","disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
0
# {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":"" ,"percentageOfOwners":"" ,"isFingerprintRequired":true ,"isFingerprintsApproved":true ,"title":"","dcjsFingerPrintStatus":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"","addressLine2":"","stateId":40,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"New York","countryId":229,"zip":""},"person":{"personId":0,"firstName":"XA","middleName":"","lastName":"sa","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":null,"confirmEmail":null},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
762
When method post
228
19:20:00.619 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/save/13850 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 1107 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":"1","percentageOfOwners":"20","isFingerprintRequired":true,"isFingerprintsApproved":true,"title":"15","numberOfShares":"","isSignature":false,"date":"2022-11-15T19:20:00.604Z","address":{"addressLine1":"Address1","addressLine2":"Address2","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation20221115192000","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T19:20:00.604Z","age":"","choosedEntity":null,"ssnFormat":"","suffixText":"JR"},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":"automation@svam.com","confirmEmail":"automation@svam.com"},"titleText":"Vice President","convictedOfCrimeText":"No","disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]} 19:20:00.833 response time in milliseconds: 213 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:49:58 GMT 1 < Content-Length: 1390 {"entities":[],"principals":[{"principalId":3273,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":true,"isFingerprintsApproved":true,"percentageOfOwners":20.0,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","entities":null,"numberOfShares":"","isSignature":false,"isRemove":false,"date":"2022-11-15T00:00:00","convictedOfCrime":"1","title":"15","isLicensed":false,"isAssociated":false,"person":{"personId":5564,"firstName":"Automation20221115192000","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T00:00:00","serialNo":0,"age":0,"choosedEntity":[]},"address":{"addressId":29317,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25229,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
763
Then status 200
0
264
* call read('LicensesCommonMethods.feature@FillAndSaveRepresentativePage') {}
4058
>>
karate.UseCases.LicensesCommonMethods
345
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
1
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Representative *********************
790
Given path '/internalapi/api/licensing/app/static/rep/save/'+appId
0
791
And header authorization = 'Bearer ' + strToken
0
792
And request {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":'#(CountyName)',"city":'#(CityName)',"zipCode":"10011","country":"United States (US)","stateName":'#(CityName)',"countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""}
0
793
When method post
334
19:20:04.671 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/rep/save/13850 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 897 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":"New York","city":"New York","zipCode":"10011","country":"United States (US)","stateName":"New York","countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""} 19:20:04.990 response time in milliseconds: 319 1 < 200 1 < Content-Length: 4 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:02 GMT true
794
Then status 200
0
795
And def serverResponse = response
8
265
* call read('LicensesCommonMethods.feature@FillAndSaveMethodOfOperationPage') {}
3021
>>
karate.UseCases.LicensesCommonMethods
190
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
6389
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
6398
Given path '/internalapi/api/licensing/app/save'
0
6399
And header Content-Type = 'application/json; charset=utf-8'
0
6400
* def prncipalName = firstName + getDate1()
1
6401
* def dt = licDate()
0
6402
And header Accept = 'application/json; text/plain;*/*'
0
6403
And header authorization = 'Bearer ' + strToken
0
6404
And request {"isApproved":false,"appId":'#(appId)',"formID":1165,"applicationID":"","formName":"","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":1,"formCategory":{},"formCategoryId":1,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and Policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1993,"key":"","label":"Will the business employ a manager?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1994,"key":"","label":"If no, will the principals manage?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1995,"key":"","label":"If Premises is not a caterer establishment, will the premises periodically close to host private events?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1996,"key":"","label":"If Yes, How Frequently?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"Yes","fieldID":1997,"key":"","label":"Will the premises have music?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1998,"key":"","label":"If Live Music, Give Details","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1999,"key":"","label":"Will the premises use the service of an event promoter?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2000,"key":"","label":"Will the Premises Permit Dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2001,"key":"","label":"Will there be exotic dancing, including but not limited to topless entertainment, pole dancing and or lap dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2002,"key":"","label":"Will there be topless entertainment?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":16,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2003,"key":"","label":"Will Security Personnel be used at the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":17,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2004,"key":"","label":"How many?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":18,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2005,"key":"","label":"Provide your proprietary security guard employer unique Identification number assigned to the business by the NYS Department of State Division of Licensing Services or the name of the security company through which the security personnel will be hired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":19,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2006,"key":"","label":"Provide a detailed plan of supervision for the premises to be licensed. Clearly describe how you will maintain control and order over the licensed premises. How will you monitor alcohol sales and prevent sales to minors and sales to intoxicated persons? How will you handle unruly patrons, altercations, etc., to prevent the premises from becoming disorderly?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":20,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2007,"key":"","label":"Are all responses provided in the application consistent with the information provided to the municipality or community board within the standardized notice form for providing thirty day advance notice","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":21,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2008,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":22,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"4","fieldID":2051,"key":"","label":"If Yes, check all that apply","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2052,"key":"","label":"Who will be permitted to dance?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"Method_of_Operation","key":"0","label":"Method Of Operation","order":11,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isStatic":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"parentSection":"","subSections":[],"sectionFieldOrders":[],"address":{"addressLine1":"","addressLine2":"","stateId":null,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"","countryId":229}}],"formVersionId":1699,"version":25,"licenseDescription":"Restaurant-Beer","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"showAbcOfficer":false,"showCorpChange":false,"showEndorsement":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant_Information","Principal","Representative","Landlord_Identification","Personal_Questionnaire"],"showPQ":true,"showCC":false,"showManuOnPrem":false,"licPermitTypeId":40,"tabVisitied":{"Applicant Information":false,"Principal":false,"Representative":false,"Landlord Identification":false,"Personal Questionnaire":false}}
1
6406
When method post
185
19:20:07.844 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 12993 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13850,"formID":1165,"applicationID":"","formName":"","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":1,"formCategory":{},"formCategoryId":1,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and Policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1993,"key":"","label":"Will the business employ a manager?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1994,"key":"","label":"If no, will the principals manage?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1995,"key":"","label":"If Premises is not a caterer establishment, will the premises periodically close to host private events?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1996,"key":"","label":"If Yes, How Frequently?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"Yes","fieldID":1997,"key":"","label":"Will the premises have music?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1998,"key":"","label":"If Live Music, Give Details","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1999,"key":"","label":"Will the premises use the service of an event promoter?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2000,"key":"","label":"Will the Premises Permit Dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2001,"key":"","label":"Will there be exotic dancing, including but not limited to topless entertainment, pole dancing and or lap dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2002,"key":"","label":"Will there be topless entertainment?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":16,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2003,"key":"","label":"Will Security Personnel be used at the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":17,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2004,"key":"","label":"How many?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":18,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2005,"key":"","label":"Provide your proprietary security guard employer unique Identification number assigned to the business by the NYS Department of State Division of Licensing Services or the name of the security company through which the security personnel will be hired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":19,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2006,"key":"","label":"Provide a detailed plan of supervision for the premises to be licensed. Clearly describe how you will maintain control and order over the licensed premises. How will you monitor alcohol sales and prevent sales to minors and sales to intoxicated persons? How will you handle unruly patrons, altercations, etc., to prevent the premises from becoming disorderly?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":20,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2007,"key":"","label":"Are all responses provided in the application consistent with the information provided to the municipality or community board within the standardized notice form for providing thirty day advance notice","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":21,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2008,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":22,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"4","fieldID":2051,"key":"","label":"If Yes, check all that apply","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2052,"key":"","label":"Who will be permitted to dance?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"Method_of_Operation","key":"0","label":"Method Of Operation","order":11,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isStatic":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"parentSection":"","subSections":[],"sectionFieldOrders":[],"address":{"addressLine1":"","addressLine2":"","stateId":null,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"","countryId":229}}],"formVersionId":1699,"version":25,"licenseDescription":"Restaurant-Beer","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"showAbcOfficer":false,"showCorpChange":false,"showEndorsement":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant_Information","Principal","Representative","Landlord_Identification","Personal_Questionnaire"],"showPQ":true,"showCC":false,"showManuOnPrem":false,"licPermitTypeId":40,"tabVisitied":{"Applicant Information":false,"Principal":false,"Representative":false,"Landlord Identification":false,"Personal Questionnaire":false}} 19:20:08.026 response time in milliseconds: 180 1 < 200 1 < Content-Length: 51 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:05 GMT {"appId":13850,"applicationId":"NA-0111-22-119051"}
6407
Then status 200
0
266
* call read('LicensesCommonMethods.feature@FeesValidation') {amount:'#(totalFees)'}
4519
>>
karate.UseCases.LicensesCommonMethods
2082
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
4
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
810
* def futureDateFunc =
4
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
820
* def futureDate = futureDateFunc()
8
822
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
832
* def date = getDate2()
2
834
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
835
And header Content-Type = 'application/json; charset=utf-8'
0
836
And header Accept = 'application/json; text/plain;*/*'
0
837
And header authorization = 'Bearer ' + strToken
0
838
And request {}
0
839
When method get
252
19:20:10.463 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13850 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:10.713 response time in milliseconds: 250 1 < 200 1 < Content-Length: 658 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:08 GMT [{"licenseName":"Restaurant - Beer","applicationId":"NA-0111-22-119051","applicationTypeId":1,"appFeesId":0,"appId":13850,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":0.0,"totalFees":0.0,"filingFees":100.00,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
840
Then status 200
0
841
And def serverResponse = response
0
842
* def licTerm = serverResponse[0].term
5
843
* def licFees = serverResponse[0].licensingFees+''
1
844
* def licTermDesc = serverResponse[0].termDesc
0
845
* def licFeesRefId = serverResponse[0].feesRefId
0
846
* def licAncillaryFees = serverResponse[0].ancillaryFees+''
2
847
* def licfilingFees = serverResponse[0].filingFees+''
0
848
* def licInitialFees = serverResponse[0].initialFees
0
849
* def bndFees = serverResponse[0].bondFee
0
850
* def isBondRequired = serverResponse[0].isBondRequired
0
851
And def totalFees = serverResponse[0].licensingFees+serverResponse[0].filingFees
1
852
And print totalFees
1
19:20:10.727 [print] 1060.0
855
Given path '/internalapi/api/notification/SaveNotification'
0
857
And header Content-Type = 'application/json; charset=utf-8'
0
858
And header Accept = 'application/json; text/plain;*/*'
0
859
And header authorization = 'Bearer ' + strToken
0
860
And request {"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}
0
861
When method post
164
19:20:10.728 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/notification/SaveNotification 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 2006 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13850,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13850,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13850,"createdBy":"Tarun Gupta"} 19:20:10.890 response time in milliseconds: 162 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:50:08 GMT 2 < Content-Length: 5 false
862
Then status 200
0
863
And print response
0
19:20:10.891 [print] false
# And header Content-Type = 'application/json; charset=utf-8'
869
Given path 'internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
871
And header Accept = 'application/json; text/plain;*/*'
0
872
And header authorization = 'Bearer ' + strToken
0
874
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":'#(amount)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":"0.00","totalFees":'#(totalFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(licTerm)',"termDesc":'#(licTermDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
5
875
When method post
219
19:20:10.897 request: 3 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13850/false 3 > Accept: application/json; text/plain;*/* 3 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 3 > Content-Type: application/json; charset=UTF-8 3 > Content-Length: 5071 3 > Host: slaleapqaapi.svam.com 3 > Connection: Keep-Alive 3 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 3 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13850,"slaintakeDate":"2022-11-15T19:20:10.462Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:20:10.462Z","amount":1060}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119051","applicationTypeId":1,"appFeesId":0,"appId":13850,"feesRefId":6039,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"0.00","totalFees":1060.0,"filingFees":"100","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":1060.0,"amountReceived":"0.00","waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-11-22T19:20:10.441Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13850,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13850,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13850,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13850,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13850,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13850,"createdBy":"Tarun Gupta"},"taskId":null} 19:20:11.116 response time in milliseconds: 217 3 < 200 3 < Content-Length: 4 3 < Content-Type: application/json; charset=utf-8 3 < Server: Microsoft-IIS/10.0 3 < Strict-Transport-Security: max-age=2592000 3 < X-Powered-By: ASP.NET 3 < Date: Tue, 15 Nov 2022 13:50:08 GMT true
876
Then status 200
0
878
Given path 'internalapi/api/licensing/fees/check-payments/get/'+appId
0
879
And header authorization = 'Bearer ' + strToken
0
880
And request {}
0
881
When method get
159
19:20:11.116 request: 4 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/check-payments/get/13850 4 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 4 > Content-Type: application/json; charset=UTF-8 4 > Content-Length: 2 4 > Host: slaleapqaapi.svam.com 4 > Connection: Keep-Alive 4 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 4 > Accept-Encoding: gzip,deflate {} 19:20:11.275 response time in milliseconds: 158 4 < 200 4 < Content-Length: 442 4 < Content-Type: application/json; charset=utf-8 4 < Server: Microsoft-IIS/10.0 4 < Strict-Transport-Security: max-age=2592000 4 < X-Powered-By: ASP.NET 4 < Date: Tue, 15 Nov 2022 13:50:08 GMT [{"checkDetailId":2333,"appId":13850,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T00:00:00","slaintakeDate":"2022-11-15T00:00:00","amount":1060.0000,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T08:50:08.423","modifiedBy":null,"modifiedDate":null}]
882
Then status 200
0
883
And def checkDetailId = response[0].checkDetailId
0
884
And print checkDetailId
0
19:20:11.275 [print] 2333
885
* def amount = response[0].amount
0
886
* def underpaidAmount = totalFees-amount
0
888
And print 'underpaidAmount- ',underpaidAmount
0
19:20:11.276 [print] underpaidAmount- 0.0
890
Given path '/internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
891
And header Content-Type = 'application/json; charset=utf-8'
0
892
* def futureDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
903
* def futureDate = futureDateFunc()
1
904
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
913
* def date = getDate2()
0
915
And header Accept = 'application/json; text/plain;*/*'
0
916
And header authorization = 'Bearer ' + strToken
0
917
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":'#(totalFees)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":'#(licInitialFees)',"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":'#(renewalFees)',"totalFees":'#(totalFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":'#(licAncillaryFees)',"isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
1
920
When method post
234
19:20:11.282 request: 5 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13850/false 5 > Content-Type: application/json; charset=utf-8 5 > Accept: application/json; text/plain;*/* 5 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 5 > Content-Length: 5068 5 > Host: slaleapqaapi.svam.com 5 > Connection: Keep-Alive 5 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 5 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13850,"slaintakeDate":"2022-11-15T19:20:11.279Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:20:11.279Z","amount":1060.0}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119051","applicationTypeId":1,"appFeesId":0,"appId":13850,"feesRefId":6039,"initialFees":0.0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"30","totalFees":1060.0,"filingFees":"100","ancillaryFees":"0","isFeesWaived":false,"underPaymentAmount":1060.0,"amountReceived":"0.00","waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-11-22T19:20:10.441Z","emailNotificationDetail":{"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13850,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13850,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13850,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13850,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13850,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13850,"createdBy":"Tarun Gupta"},"taskId":null} 19:20:11.514 response time in milliseconds: 232 5 < 200 5 < Content-Type: application/json; charset=utf-8 5 < Server: Microsoft-IIS/10.0 5 < Strict-Transport-Security: max-age=2592000 5 < X-Powered-By: ASP.NET 5 < Date: Tue, 15 Nov 2022 13:50:08 GMT 5 < Content-Length: 4 true
921
Then status 200
0
# ********* SAVE Application Details To Save *********************
928
Given path '/internalapi/api/licensing/app/save'
0
929
And header authorization = 'Bearer ' + strToken
0
930
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":'#(CityName)',"fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
1
931
When method post
274
19:20:11.521 request: 6 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 6 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 6 > Content-Type: application/json; charset=UTF-8 6 > Content-Length: 30721 6 > Host: slaleapqaapi.svam.com 6 > Connection: Keep-Alive 6 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 6 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13850,"formID":1165,"applicationID":"NA-0111-22-119051","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:20:11.792 response time in milliseconds: 269 6 < 200 6 < Content-Length: 51 6 < Content-Type: application/json; charset=utf-8 6 < Server: Microsoft-IIS/10.0 6 < Strict-Transport-Security: max-age=2592000 6 < X-Powered-By: ASP.NET 6 < Date: Tue, 15 Nov 2022 13:50:09 GMT {"appId":13850,"applicationId":"NA-0111-22-119051"}
932
Then status 200
0
935
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
936
And header authorization = 'Bearer ' + strToken
0
937
And header Content-Type = 'application/json; charset=utf-8'
0
938
And header Accept = 'application/json; text/plain;*/*'
0
939
And request ""
0
940
When method get
227
19:20:11.796 request: 7 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13850 7 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 7 > Content-Type: application/json; charset=utf-8 7 > Accept: application/json; text/plain;*/* 7 > Content-Length: 0 7 > Host: slaleapqaapi.svam.com 7 > Connection: Keep-Alive 7 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 7 > Accept-Encoding: gzip,deflate 19:20:12.021 response time in milliseconds: 225 7 < 200 7 < Content-Length: 660 7 < Content-Type: application/json; charset=utf-8 7 < Server: Microsoft-IIS/10.0 7 < Strict-Transport-Security: max-age=2592000 7 < X-Powered-By: ASP.NET 7 < Date: Tue, 15 Nov 2022 13:50:09 GMT [{"licenseName":"Restaurant - Beer","applicationId":"NA-0111-22-119051","applicationTypeId":1,"appFeesId":3071,"appId":13850,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":0.0,"totalFees":0.0,"filingFees":100.00,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
941
Then status 200
0
942
And print response[0].appFeesId
0
19:20:12.021 [print] 3071
943
And def appFeesId1 = response[0].appFeesId
0
944
And def feesRefId1 = response[0].feesRefId
0
945
And print appFeesId1
0
19:20:12.023 [print] 3071
946
And print feesRefId1
0
19:20:12.023 [print] 6039
947
And def applicationTypeId = response[0].applicationTypeId
0
948
And print applicationTypeId
0
19:20:12.025 [print] 1
# ********* Save PAYMENT *********************
951
Given path '/internalapi/api/licensing/fees/details/save/'+appId +'/false'
0
953
* def slaDate = licFeesDate()
0
954
* def slaaDate = licDate()
0
955
* def licInitialFees1 = licInitialFees+''
0
956
And print licInitialFees1
0
19:20:12.026 [print] 0
957
* def renewalFees1 = renewalFees+''
0
958
And print renewalFees1
1
19:20:12.027 [print] 30
959
* def totalFees1 = totalFees+''
0
961
And print totalFees1
0
19:20:12.027 [print] 1060
962
* def licAncillaryFees1 = licAncillaryFees+''
0
963
* def licfilingFees1 = licfilingFees+''
0
965
And header authorization = 'Bearer ' + strToken
0
966
And request {"checks":[{"checkDetailId":'#(checkDetailId)',"appId":'#(appId)',"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":'#(date)',"slaintakeDate":'#(date)',"amount":'#(amount)',"appliedTo":null,"amountUsed":'#(amount)',"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":'#(date)',"modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":'#(licFeesRefId)',"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":"0.00","totalFees":'#(totalFees1)',"filingFees":'#(licfilingFees1)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(underpaidAmount)',"amountReceived":'#(amount)',"waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":'#(appId)',"checkDetailId":'#(checkDetailId)',"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":'#(amount)',"amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
0
971
When method post
233
19:20:12.030 request: 8 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13850/false 8 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 8 > Content-Type: application/json; charset=UTF-8 8 > Content-Length: 5458 8 > Host: slaleapqaapi.svam.com 8 > Connection: Keep-Alive 8 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 8 > Accept-Encoding: gzip,deflate {"checks":[{"checkDetailId":2333,"appId":13850,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T19:20:11.279Z","slaintakeDate":"2022-11-15T19:20:11.279Z","amount":1060.0,"appliedTo":null,"amountUsed":1060.0,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T19:20:11.279Z","modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119051","applicationTypeId":1,"appFeesId":6039,"appId":13850,"feesRefId":6039,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"0.00","totalFees":"1060","filingFees":"100","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":1060.0,"waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":13850,"checkDetailId":2333,"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":1060.0,"amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":"2022-11-22T19:20:10.441Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13850,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13850,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13850,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13850,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13850,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13850,"createdBy":"Tarun Gupta"},"taskId":null} 19:20:12.261 response time in milliseconds: 231 8 < 200 8 < Content-Length: 4 8 < Content-Type: application/json; charset=utf-8 8 < Server: Microsoft-IIS/10.0 8 < Strict-Transport-Security: max-age=2592000 8 < X-Powered-By: ASP.NET 8 < Date: Tue, 15 Nov 2022 13:50:09 GMT true
972
Then status 200
0
973
And print response
0
19:20:12.261 [print] true
# ********* SAVE Application Details To Save *********************
978
Given path '/internalapi/api/licensing/app/save'
0
979
And header authorization = 'Bearer ' + strToken
0
980
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":'#(CityName)',"fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
2
981
When method post
271
19:20:12.269 request: 9 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 9 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 9 > Content-Type: application/json; charset=UTF-8 9 > Content-Length: 30721 9 > Host: slaleapqaapi.svam.com 9 > Connection: Keep-Alive 9 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 9 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13850,"formID":1165,"applicationID":"NA-0111-22-119051","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:20:12.534 response time in milliseconds: 265 9 < 200 9 < Content-Length: 51 9 < Content-Type: application/json; charset=utf-8 9 < Server: Microsoft-IIS/10.0 9 < Strict-Transport-Security: max-age=2592000 9 < X-Powered-By: ASP.NET 9 < Date: Tue, 15 Nov 2022 13:50:09 GMT {"appId":13850,"applicationId":"NA-0111-22-119051"}
982
Then status 200
0
983
And def serverResponse = response
0
268
* call read('LicensesCommonMethods.feature@SubmitLicenseAndValidateLicStatus') {expStatus:'Awaiting Review'}
4548
>>
karate.UseCases.LicensesCommonMethods
2997
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Application SUBMIT *********************
1099
Given path '/internalapi/api/licensing/app/submit'
0
1100
And header authorization = 'Bearer ' + strToken
0
1101
And request {"appId":'#(appId)',"wfType":null}
0
1102
When method post
280
19:20:14.096 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/submit 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 29 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"appId":13850,"wfType":null} 19:20:14.376 response time in milliseconds: 280 1 < 200 1 < Content-Length: 123 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:11 GMT {"success":true,"submittedApps":[{"success":true,"taskId":0,"appId":13850,"applicationId":"NA-0111-22-119051","error":""}]}
1103
Then status 200
0
1104
And def serverResponse = response
0
1105
And match response.success == true
3
1106
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
2711
>>
karate.UseCases.LicensesCommonMethods
1130
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
2
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
957
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
166
19:20:16.909 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13850 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:17.074 response time in milliseconds: 164 1 < 200 1 < Content-Length: 215 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:14 GMT {"applicationId":"NA-0111-22-119051","submitDate":"2022-11-15T08:50:11.59","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:20:17.075 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1
269
* call read('LicensesCommonMethods.feature@AssignApplicationsToExaminer') {}
3690
>>
karate.UseCases.LicensesCommonMethods
1656
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
2
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* AssignApplicationsSaveDigestDataToExaminer *********************
1139
Given path '/internalapi/api/licensing/examiner/assignApplicationsToExaminer'
0
1140
And header authorization = 'Bearer ' + strToken
0
1141
And request [{"appId":'#(appId)',"examinerId":1069,"priority":"Normal"}]
0
1142
When method post
229
19:20:19.139 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/examiner/assignApplicationsToExaminer 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 55 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate [{"appId":13850,"examinerId":1069,"priority":"Normal"}] 19:20:19.367 response time in milliseconds: 228 1 < 200 1 < Content-Length: 5 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:16 GMT false
1143
And def serverResponse = response
0
1144
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
1421
>>
karate.UseCases.LicensesCommonMethods
319
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
165
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
150
19:20:20.627 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13850 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:20.776 response time in milliseconds: 149 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:18 GMT 1 < Content-Length: 215 {"applicationId":"NA-0111-22-119051","submitDate":"2022-11-15T08:50:11.59","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:20:20.777 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1
270
* call read('LicensesCommonMethods.feature@ExaminerReviewApprovalToLB') {}
1780
>>
karate.UseCases.LicensesCommonMethods
1191
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
2
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Examiner Review Approval to LB *********************
1149
* def summisionDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS"); var date = new java.util.Date(); return sdf.format(date); }
1157
Given path '/internalapi/api/licensing/examiner-review/SaveNewLicense'
0
1158
* def formatedSumbitDate = summisionDate()
0
1159
And header authorization = 'Bearer ' + strToken
0
1160
And header current-wfroleid = 4
0
1161
And request {"isFingerPrintsApproved":false,"isFingerPrintsRequired":false,"isCorpLLCDissolved":false,"isCorpLLCDTaken":false,"isSendPDLetter":false,"isDisable500LB_FBPT":false,"isDisableLBForPD":false,"isDisableLBForCaseClosed":false,"isDisableLateRenewalAndUnderpayment":false,"isLiquidatorPermitHasCompleted":-1,"isSubmit":true,"fieldDeficiencies":[],"masterFileData":[],"combinedCraftData":[],"application":{"applicationCategory":1,"appId":'#(appId)',"applicationId":'#(ApplicationId)',"licePermitTypeId":null,"applicationTypeId":1,"formVersionId":1231,"formId":'#(formId)',"legalName":'#(legalName)',"submitDate":'#(formatedSumbitDate)',"isGISRequired":null,"licenseDescription":'#(description)',"recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":'#(CityName)',"priority":"Normal","expirationDate":null,"appStatusId":3,"taskStatus":"Awaiting Review","taskId":1026,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":true,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":false,"isNotQualified":false,"eventDate":null,"appStatus":{"appStatusId":3,"statusDescription":"Under Review","isActive":true,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":{"appExaminerId":1069,"appId":'#(appId)',"examinerId":1069,"name":null,"assignDate":'#(formatedSumbitDate)',"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"assignAppToLB":null,"licePermitType":{"licPermitTypeId":'#(mainLicensePermitTypeId)',"type":"1","category":"1","product":'#(productName)',"class":null,"description":null,"sectionOfLaw":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isTempPermit":false,"isELicensingPermit":false,"isAdditionalBar":false},"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":'#(mainLicensePermitTypeId)',"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":true,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":'#(formatedSumbitDate)'},"appId":'#(appId)',"notificationTypeId":2028,"applicationType":1,"decisionType":{"name":"Send to Licensing Board","value":2},"emailNotificationModel":{"applicant":{},"attorney":{},"communityBoard":{},"other":{}},"hasErrors":[],"taskId":1026,"newComments":"","recommendedDecisionId":null};
0
1162
When method post
278
19:20:21.384 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/examiner-review/SaveNewLicense 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > current-wfroleid: 4 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 3055 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isFingerPrintsApproved":false,"isFingerPrintsRequired":false,"isCorpLLCDissolved":false,"isCorpLLCDTaken":false,"isSendPDLetter":false,"isDisable500LB_FBPT":false,"isDisableLBForPD":false,"isDisableLBForCaseClosed":false,"isDisableLateRenewalAndUnderpayment":false,"isLiquidatorPermitHasCompleted":-1,"isSubmit":true,"fieldDeficiencies":[],"masterFileData":[],"combinedCraftData":[],"application":{"applicationCategory":1,"appId":13850,"applicationId":"NA-0111-22-119051","licePermitTypeId":null,"applicationTypeId":1,"formVersionId":1231,"formId":1165,"legalName":"Automation20221115191951Automation","submitDate":"2022-11-15T19:20:21.383","isGISRequired":null,"licenseDescription":"Restaurant-Beer","recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":"New York","priority":"Normal","expirationDate":null,"appStatusId":3,"taskStatus":"Awaiting Review","taskId":1026,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":true,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":false,"isNotQualified":false,"eventDate":null,"appStatus":{"appStatusId":3,"statusDescription":"Under Review","isActive":true,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":{"appExaminerId":1069,"appId":13850,"examinerId":1069,"name":null,"assignDate":"2022-11-15T19:20:21.383","isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"assignAppToLB":null,"licePermitType":{"licPermitTypeId":40,"type":"1","category":"1","product":"RestaurantBeer","class":null,"description":null,"sectionOfLaw":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isTempPermit":false,"isELicensingPermit":false,"isAdditionalBar":false},"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":40,"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":true,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":"2022-11-15T19:20:21.383"},"appId":13850,"notificationTypeId":2028,"applicationType":1,"decisionType":{"name":"Send to Licensing Board","value":2},"emailNotificationModel":{"applicant":{},"attorney":{},"communityBoard":{},"other":{}},"hasErrors":[],"taskId":1026,"newComments":"","recommendedDecisionId":null} 19:20:21.661 response time in milliseconds: 277 1 < 200 1 < Content-Length: 4 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:18 GMT true
1163
Then status 200
0
1164
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
908
>>
karate.UseCases.LicensesCommonMethods
368
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
207
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
156
19:20:22.406 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13850 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:22.562 response time in milliseconds: 156 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:19 GMT 1 < Content-Length: 215 {"applicationId":"NA-0111-22-119051","submitDate":"2022-11-15T08:50:11.59","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:20:22.563 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
0
271
* call read('LicensesCommonMethods.feature@LBClaimingQueue') {}
1910
>>
karate.UseCases.LicensesCommonMethods
1120
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* LB Claiming Queue *********************
1249
Given path 'internalapi/api/licensing/claiming-queue/add/'+appId +'/1069'
0
1250
And header authorization = 'Bearer ' + strToken
0
1251
And header current-wfroleid = 5
0
1252
And request {}
0
1253
When method post
161
19:20:23.361 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/claiming-queue/add/13850/1069 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > current-wfroleid: 5 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:23.520 response time in milliseconds: 159 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:19 GMT 1 < Content-Length: 4 true
1254
Then status 200
0
1255
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
955
>>
karate.UseCases.LicensesCommonMethods
326
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
158
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
162
19:20:24.301 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13850 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:24.463 response time in milliseconds: 162 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:21 GMT 1 < Content-Length: 215 {"applicationId":"NA-0111-22-119051","submitDate":"2022-11-15T08:50:11.59","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:20:24.464 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1
272
* def expirationDate = fundDueDateFunc(10)
2
273
* call read('LicensesCommonMethods.feature@LBApprovalWithDueDate') {approvalName:'Approved', expStatus:'Approved'}
1776
>>
karate.UseCases.LicensesCommonMethods
1274
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* LB Approval *********************
2346
Given path '/internalapi/api/licensing/search/GetEmailNotificationByAppIdAndNotificationTypeId/'+appId+'/0'
0
2347
And header authorization = 'Bearer ' + strToken
0
2348
And request ''
0
2349
When method get
146
19:20:24.986 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/search/GetEmailNotificationByAppIdAndNotificationTypeId/13850/0 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: text/plain; charset=UTF-8 1 > Content-Length: 0 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate 19:20:25.132 response time in milliseconds: 146 1 < 200 1 < Content-Length: 1959 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:21 GMT {"applicant":{"communicationId":25227,"email":"automation@svam.com","appId":13850,"emailContactTypeId":1,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":25230,"email":"sbandi@svam.com","appId":13850,"emailContactTypeId":2,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null}}
2350
Then status 200
0
2351
And def serverResponse = response
0
2352
* def applicantCommId = serverResponse.applicant.communicationId
0
2353
* def attorneyCommId = serverResponse.attorney.communicationId
0
2355
Given path '/internalapi/api/licensing/new-license/saveDecision'
0
2356
And header authorization = 'Bearer ' + strToken
0
2357
And header current-wfroleid = 5
0
2358
* def getSelectedDecisionFunc =
0
function(value1){ if (value1 == 'Approved'){ return 1; } else if (value1 == 'Disapproved'){ return 2; } else if (value1 == 'Disapproval to Counsel'){ return 3; }else if (value1 == 'Withdrawal'){ return 4; }else if (value1 == 'Conditionally Approved'){ return 5; }else if (value1 == 'FB Decision Required'){ return 6; }else if (value1 == 'Return to Examiner'){ return 7; } else { return 1; } }
2384
* def selectedDecisionCode = getSelectedDecisionFunc(approvalName)
1
2385
And print selectedDecisionCode
0
19:20:25.133 [print] 1
2386
And request {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":'#(appId)',"applicationType":1,"applicationId":'#(ApplicationId)',"legalName":'#(legalName)',"statusId":3,"decisionType":{"name":'#(approvalName)',"value":'#(selectedDecisionCode)'},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":'#(effectiveDate)',"expirationDate":'#(expirationDate)',"stipulations":[],"descriptions":[]}}
0
2388
When method post
329
19:20:25.134 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/new-license/saveDecision 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > current-wfroleid: 5 2 > Content-Type: application/json; charset=UTF-8 2 > Content-Length: 2479 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":13850,"applicationType":1,"applicationId":"NA-0111-22-119051","legalName":"Automation20221115191951Automation","statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":"2022-11-15","expirationDate":"2022-11-25T19:20:24.485Z","stipulations":[],"descriptions":[]}} 19:20:25.463 response time in milliseconds: 329 2 < 200 2 < Content-Length: 4 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:50:21 GMT true
2389
Then status 200
0
2390
And def serverResponse = response
0
2391
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
795
>>
karate.UseCases.LicensesCommonMethods
325
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
168
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
154
19:20:26.100 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13850 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:26.254 response time in milliseconds: 154 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:23 GMT 1 < Content-Length: 208 {"applicationId":"NA-0111-22-119051","submitDate":"2022-11-15T08:50:11.59","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Approved"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:20:26.254 [print] Approved
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
0
274
* call read('LicensesCommonMethods.feature@ValidateLicenseApplicationStatus') {LicAppStatus:'Approved'}
718
>>
karate.UseCases.LicensesCommonMethods
217
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1326
Given path 'internalapi/api/GenericSearch/SearchLicense'
0
1327
And header Content-Type = 'application/json; charset=utf-8'
0
1328
And header Accept = 'application/json; text/plain;*/*'
0
1329
And header authorization = 'Bearer ' + strToken
0
1330
And params {page:1,pageSize:10}
0
1331
And request [{"dataTypeValue":"Text","key":"ApplicationId","operatorValue":"=","value":'#(ApplicationId)'}]
0
1332
When method post
213
19:20:26.764 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/GenericSearch/SearchLicense?pageSize=10&page=1 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 96 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate [{"dataTypeValue":"Text","key":"ApplicationId","operatorValue":"=","value":"NA-0111-22-119051"}] 19:20:26.977 response time in milliseconds: 213 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:23 GMT 1 < Content-Length: 684 {"data":[{"acaId":13850,"acaType":"application","applicationLicenseId":"0111-22-129118","legacySerialNo":null,"legalName":"Automation20221115191951Automation","dba":null,"licenseDescription":"Restaurant-Beer","expirationDate":"2022-11-25T00:00:00","examinerAssigned":"Tarun Gupta","premisesAddress":"Address1 Address2 New York New York New York 12345 1234 United States (US)","applicantAddress":"Address1 Address2 New York New York New York 12345 1234 United States (US)","feinSsn":"","formId":1165,"applicationId":"NA-0111-22-119051","licenseId":"0111-22-129118","wfRoleId":2,"applicationStatus":"Approved","licenseStatus":"Active"}],"total":1,"aggregateResults":null,"errors":null}
1333
Then status 200
0
1334
And print response
0
19:20:26.977 [print] { "data": [ { "acaId": 13850, "acaType": "application", "applicationLicenseId": "0111-22-129118", "legacySerialNo": null, "legalName": "Automation20221115191951Automation", "dba": null, "licenseDescription": "Restaurant-Beer", "expirationDate": "2022-11-25T00:00:00", "examinerAssigned": "Tarun Gupta", "premisesAddress": "Address1 Address2 New York New York New York 12345 1234 United States (US)", "applicantAddress": "Address1 Address2 New York New York New York 12345 1234 United States (US)", "feinSsn": "", "formId": 1165, "applicationId": "NA-0111-22-119051", "licenseId": "0111-22-129118", "wfRoleId": 2, "applicationStatus": "Approved", "licenseStatus": "Active" } ], "total": 1, "aggregateResults": null, "errors": null }
1335
* match response.data[0].applicationStatus == '#(LicAppStatus)'
0
276
* call read('LicensesCommonMethods.feature@GetLicenseId') {}
664
>>
karate.UseCases.LicensesCommonMethods
178
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
3212
Given path '/internalapi/api/licensing/LBDecision/getLicenseByAppId/' + appId +'/-1'
0
3213
And header authorization = 'Bearer ' + strToken
0
3214
* def EffectiveDate = EffDate()
0
3215
And request {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":'#(appId)',"applicationType":1,"applicationId":'#(ApplicationId)',"legalName":null,"statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":'#(EffectiveDate)',"expirationDate":'#(expiryDate)',"stipulations":[],"descriptions":[]}}
3
3216
When method get
170
19:20:27.468 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/LBDecision/getLicenseByAppId/13850/-1 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 2436 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":13850,"applicationType":1,"applicationId":"NA-0111-22-119051","legalName":null,"statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":"2022-11-15","expirationDate":"#(expiryDate)","stipulations":[],"descriptions":[]}} 19:20:27.638 response time in milliseconds: 169 1 < 200 1 < Content-Length: 2853 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:24 GMT {"license":{"licId":1467,"applicationId":null,"licenseId":"0111-22-129118","licensePermitId":null,"licePermitTypeId":40,"appId":13850,"legacySerialNo":null,"issueDate":null,"expiryDate":"2025-10-31T00:00:00","effectiveDate":"2022-11-15T00:00:00","seasonalStartDate":null,"seasonalEndDate":null,"safeKeepingExpiryDate":null,"status":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"extTempPermitEnabled":false,"application":{"applicationCategory":null,"appId":null,"applicationId":null,"licePermitTypeId":null,"applicationTypeId":null,"formVersionId":null,"formId":null,"legalName":null,"submitDate":null,"isGISRequired":null,"licenseDescription":null,"recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":null,"priority":null,"expirationDate":null,"appStatusId":null,"taskStatus":null,"taskId":null,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":null,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":null,"isNotQualified":null,"eventDate":null,"appStatus":{"appStatusId":0,"statusDescription":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":null,"assignAppToLB":null,"licePermitType":null,"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":0,"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isCaseOpenSameAddress":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"clericalName":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"isFairOrFestival":false,"isShowEffExpDateOnLBReview":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"options":null,"emailNotificationModel":null,"taskOptionsListNested":null,"days":0,"permit":null,"licPermitType":null,"licensePermitMapping":null,"licenseFee":null,"accountBalance":null,"licenseDescription":null,"isSeasonal":false,"isSummerSeasonal":false,"newExpiryDate":null,"amountDue":null,"originalLicenseFee":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"wfRoleId":0},"person":[],"totalRecord":0,"apps":[]}
3217
Then status 200
0
3218
And def serverResponse = response
0
3219
And print serverResponse
0
19:20:27.638 [print] { "license": { "licId": 1467, "applicationId": null, "licenseId": "0111-22-129118", "licensePermitId": null, "licePermitTypeId": 40, "appId": 13850, "legacySerialNo": null, "issueDate": null, "expiryDate": "2025-10-31T00:00:00", "effectiveDate": "2022-11-15T00:00:00", "seasonalStartDate": null, "seasonalEndDate": null, "safeKeepingExpiryDate": null, "status": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null, "extTempPermitEnabled": false, "application": { "applicationCategory": null, "appId": null, "applicationId": null, "licePermitTypeId": null, "applicationTypeId": null, "formVersionId": null, "formId": null, "legalName": null, "submitDate": null, "isGISRequired": null, "licenseDescription": null, "recommendedDecisionId": null, "status500": null, "isApplicableForPDLetter": false, "countyName": null, "priority": null, "expirationDate": null, "appStatusId": null, "taskStatus": null, "taskId": null, "currentWfstatus": null, "communityBoard": null, "isLicenseApplication": null, "currentDueDate": null, "isFinalDeficiency": null, "isHighlyDeficient": null, "isAllDeficienciesMet": null, "pastDueDate": null, "memo": null, "isOneTimePermit": null, "dueDateAction": null, "isDisapprovedForCause": null, "isNotQualified": null, "eventDate": null, "appStatus": { "appStatusId": 0, "statusDescription": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null }, "applicationType": null, "assignAppExaminer": null, "assignAppToLB": null, "licePermitType": null, "assoApplicationList": [ ], "isTempPermit": null, "isTempOrLiq": false, "licPermitTypeId": 0, "isAssociatedLicense": null, "effectiveDate": null, "assignedUserId": null, "amendmentTypeId": null, "amendmentType": null, "disapprovedDate": null, "condApprovedDate": null, "addressId": null, "isCaseOpen": null, "isClosed": null, "isCaseOpenSameAddress": null, "isSpecialEventPlusFour": null, "isSpecialEventInsideFiveBoroughs": null, "licStatus": null, "createdBy": null, "clericalName": null, "licenseId": null, "address": null, "isNybeApp": false, "isHearingCompleted": null, "does500FtHearingExist": null, "parentAppStatus": null, "premisesAppCount": 0, "statusDescription": null, "eventAddress": null, "isFairOrFestival": false, "isShowEffExpDateOnLBReview": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskRoleId": 0, "taskDecision": null, "isActive": null, "createdDate": null, "modifiedBy": null, "wfRoleId": 0, "modifiedDate": null }, "options": null, "emailNotificationModel": null, "taskOptionsListNested": null, "days": 0, "permit": null, "licPermitType": null, "licensePermitMapping": null, "licenseFee": null, "accountBalance": null, "licenseDescription": null, "isSeasonal": false, "isSummerSeasonal": false, "newExpiryDate": null, "amountDue": null, "originalLicenseFee": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskId": null, "taskRoleId": 0, "taskDecision": null, "wfRoleId": 0 }, "person": [ ], "totalRecord": 0, "apps": [ ] }
3220
And def licId = serverResponse.license.licId
0
3221
And def licenseId = serverResponse.license.licenseId
0
3222
And def ActEffDate = serverResponse.license.seasonalStartDate
0
3223
And def ActExpDate = serverResponse.license.expiryDate
0
3224
And print serverResponse
0
19:20:27.639 [print] { "license": { "licId": 1467, "applicationId": null, "licenseId": "0111-22-129118", "licensePermitId": null, "licePermitTypeId": 40, "appId": 13850, "legacySerialNo": null, "issueDate": null, "expiryDate": "2025-10-31T00:00:00", "effectiveDate": "2022-11-15T00:00:00", "seasonalStartDate": null, "seasonalEndDate": null, "safeKeepingExpiryDate": null, "status": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null, "extTempPermitEnabled": false, "application": { "applicationCategory": null, "appId": null, "applicationId": null, "licePermitTypeId": null, "applicationTypeId": null, "formVersionId": null, "formId": null, "legalName": null, "submitDate": null, "isGISRequired": null, "licenseDescription": null, "recommendedDecisionId": null, "status500": null, "isApplicableForPDLetter": false, "countyName": null, "priority": null, "expirationDate": null, "appStatusId": null, "taskStatus": null, "taskId": null, "currentWfstatus": null, "communityBoard": null, "isLicenseApplication": null, "currentDueDate": null, "isFinalDeficiency": null, "isHighlyDeficient": null, "isAllDeficienciesMet": null, "pastDueDate": null, "memo": null, "isOneTimePermit": null, "dueDateAction": null, "isDisapprovedForCause": null, "isNotQualified": null, "eventDate": null, "appStatus": { "appStatusId": 0, "statusDescription": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null }, "applicationType": null, "assignAppExaminer": null, "assignAppToLB": null, "licePermitType": null, "assoApplicationList": [ ], "isTempPermit": null, "isTempOrLiq": false, "licPermitTypeId": 0, "isAssociatedLicense": null, "effectiveDate": null, "assignedUserId": null, "amendmentTypeId": null, "amendmentType": null, "disapprovedDate": null, "condApprovedDate": null, "addressId": null, "isCaseOpen": null, "isClosed": null, "isCaseOpenSameAddress": null, "isSpecialEventPlusFour": null, "isSpecialEventInsideFiveBoroughs": null, "licStatus": null, "createdBy": null, "clericalName": null, "licenseId": null, "address": null, "isNybeApp": false, "isHearingCompleted": null, "does500FtHearingExist": null, "parentAppStatus": null, "premisesAppCount": 0, "statusDescription": null, "eventAddress": null, "isFairOrFestival": false, "isShowEffExpDateOnLBReview": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskRoleId": 0, "taskDecision": null, "isActive": null, "createdDate": null, "modifiedBy": null, "wfRoleId": 0, "modifiedDate": null }, "options": null, "emailNotificationModel": null, "taskOptionsListNested": null, "days": 0, "permit": null, "licPermitType": null, "licensePermitMapping": null, "licenseFee": null, "accountBalance": null, "licenseDescription": null, "isSeasonal": false, "isSummerSeasonal": false, "newExpiryDate": null, "amountDue": null, "originalLicenseFee": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskId": null, "taskRoleId": 0, "taskDecision": null, "wfRoleId": 0 }, "person": [ ], "totalRecord": 0, "apps": [ ] }
3225
And print 'licId : ' , licId
0
19:20:27.639 [print] licId : 1467
3226
And print 'licenseId : ' , licenseId
0
19:20:27.639 [print] licenseId : 0111-22-129118
3227
And match licId != []
0
3228
And match licenseId != []
0
277
And print licenseId
0
19:20:27.644 [print] 0111-22-129118
278
* def notQualifiedApplication = false
0
279
* def notQlfdAppMessage = ''
0
280
* call read('RenewalCommonMethods.feature@IntakeRenewalLicense') {}
1730
>>
karate.UseCases.RenewalCommonMethods
1491
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
0
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
1
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
169
Given path '/internalapi/api/licensing/search/searchLicensesAndPermits/'
0
170
And header Content-Type = 'application/json; charset=utf-8'
0
172
And header Accept = 'application/json; text/plain;*/*'
0
173
And header authorization = 'Bearer ' + strToken
0
176
And request {"WfTaskIdList":[],"LicenseStatusList":[19,45,40],"ShowLicensesAndPermits":true,"Status":null,"isTempPermit":null,"ApplicationId":null,"LicensePermitId":'#(licenseId)',"LegalName":null,"FEIN":null,"applyFor":""}
0
177
When method POST
157
19:20:27.875 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/search/searchLicensesAndPermits 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 213 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"WfTaskIdList":[],"LicenseStatusList":[19,45,40],"ShowLicensesAndPermits":true,"Status":null,"isTempPermit":null,"ApplicationId":null,"LicensePermitId":"0111-22-129118","LegalName":null,"FEIN":null,"applyFor":""} 19:20:28.030 response time in milliseconds: 155 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:24 GMT 1 < Content-Length: 1290 {"licenses":[{"lpId":1467,"licensePermitId":"0111-22-129118","licPermitTypeId":40,"isAccociatedLicense":false,"appId":13850,"mainAppId":13850,"status":"Active","legacySerialNo":null,"isLicense":true,"isPermit":null,"issueDate":"2022-11-15T00:00:00","expiryDate":"2022-11-25T00:00:00","effectiveDate":"2022-11-15T00:00:00","safeKeepingExpiryDate":null,"licensePermitStatusId":19,"combinedCraftId":null,"masterFileId":null,"isApplicableForTransfer":null,"surrenderDate":null,"isActive":true,"createdDate":"2022-11-15T08:50:22.64","modifiedDate":null,"submitDate":"2022-11-15T08:50:11.59","description":"Restaurant-Beer","county":"New York","legalName":"Automation20221115191951Automation","fein":"","formId":1165,"isRenewalRequird":true,"dba":null,"associatePermits":[],"provisions":[],"address":{"addressId":null,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":null,"county":"New York","zipCode":"12345","zip4":null,"street":null,"telephoneNumber":null,"country":null,"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":null,"serialNo":0,"addressType":null,"state":null},"mfCCId":null}],"totalRecord":1}
178
Then status 200
0
179
* def licPermitTypeId = response.licenses[0].licPermitTypeId
0
180
* def lpId = response.licenses[0].lpId
0
181
* def effectiveDate = response.licenses[0].effectiveDate
0
182
* def expiryDate = response.licenses[0].expiryDate
0
183
* def legalName = response.licenses[0].legalName
0
184
* def licAppId = response.licenses[0].appId
0
185
* def submitDate = response.licenses[0].submitDate
0
186
* call read('LicensesCommonMethods.feature@GetCountyList') {}
964
>>
karate.UseCases.LicensesCommonMethods
346
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
117
Given path '/internalapi/api/reference'
0
118
* def dbSts = db.cleanHeap()
158
119
And header authorization = 'Bearer ' + strToken
0
120
And header Content-Type = 'application/json;charset=utf-8'
0
121
And header Accept = 'text/plain'
0
# * def query = {name:countyzone&onlyActives:true}
123
And params {name:countyzone,onlyActives:true}
0
#And param onlyActives='true'
125
And request {}
0
126
When method get
185
19:20:28.807 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/reference?name=countyzone&onlyActives=true 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json;charset=utf-8 1 > Accept: text/plain 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:28.991 response time in milliseconds: 184 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:26 GMT 1 < Content-Length: 11712 {"values":[{"CountyId":1,"County":"New York","ShortName":"NEW","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T00:00:00","ModifiedBy":"esandoval","ModifiedDate":"2020-11-10T11:30:56.047"},{"CountyId":2,"County":"Kings","ShortName":"KING","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":3,"County":"Bronx","ShortName":"BRON","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":4,"County":"Queens","ShortName":"QUEE","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":5,"County":"Richmond","ShortName":"RICH","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":6,"County":"Nassau","ShortName":"NASS","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":7,"County":"Suffolk","ShortName":"SUFF","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":8,"County":"Westchester","ShortName":"WEST","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":9,"County":"Orange","ShortName":"ORAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":10,"County":"Putnam","ShortName":"PUTN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":11,"County":"Rockland","ShortName":"ROCK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":12,"County":"Albany","ShortName":"ALBA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":13,"County":"Clinton","ShortName":"CLIN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":14,"County":"Columbia","ShortName":"COLU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":15,"County":"Dutchess","ShortName":"DUTC","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":16,"County":"Essex","ShortName":"ESSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":17,"County":"Franklin","ShortName":"FRAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":18,"County":"Fulton","ShortName":"FULT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":19,"County":"Greene","ShortName":"GREE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":20,"County":"Hamilton","ShortName":"HAMI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":21,"County":"Montgomery","ShortName":"MONT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":22,"County":"Rensselaer","ShortName":"RENS","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":23,"County":"Saratoga","ShortName":"SARA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":24,"County":"Schenectady","ShortName":"SCHE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":25,"County":"Schoharie","ShortName":"SCHO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":26,"County":"Sullivan","ShortName":"SULL","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":27,"County":"Ulster","ShortName":"ULST","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":28,"County":"Warren","ShortName":"WARR","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":29,"County":"Washington","ShortName":"WASH","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":30,"County":"Allegany","ShortName":"ALLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":31,"County":"Cattaraugus","ShortName":"CATT","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":32,"County":"Chautauqua","ShortName":"CHAU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":33,"County":"Chemung","ShortName":"CHEM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":34,"County":"Erie","ShortName":"ERIE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":35,"County":"Genesee","ShortName":"GENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":36,"County":"Livingston","ShortName":"LIVI","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":37,"County":"Monroe","ShortName":"MONR","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":38,"County":"Niagara","ShortName":"NIAG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":39,"County":"Ontario","ShortName":"ONTA","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":40,"County":"Orleans","ShortName":"ORLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":41,"County":"Schuyler","ShortName":"SCHU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":42,"County":"Seneca","ShortName":"SENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":43,"County":"Steuben","ShortName":"STEU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":44,"County":"Wayne","ShortName":"WAYN","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":45,"County":"Wyoming","ShortName":"WYOM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":46,"County":"Yates","ShortName":"YATE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":47,"County":"Broome","ShortName":"BROO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":48,"County":"Chenango","ShortName":"CHEN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":49,"County":"Cortland","ShortName":"CORT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":50,"County":"Delaware","ShortName":"DELA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":51,"County":"Herkimer","ShortName":"HERK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":52,"County":"Jefferson","ShortName":"JEFF","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":53,"County":"Lewis","ShortName":"LEWI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":54,"County":"Madison","ShortName":"MADI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":55,"County":"Oneida","ShortName":"ONEI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":56,"County":"Onondaga","ShortName":"ONON","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":57,"County":"Oswego","ShortName":"OSWE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":58,"County":"Otsego","ShortName":"OTSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":59,"County":"St. Lawrence","ShortName":"ST L","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":60,"County":"Cayuga","ShortName":"CAYU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":61,"County":"Tioga","ShortName":"TIOG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":62,"County":"Tompkins","ShortName":"TOMP","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.6","ModifiedBy":null,"ModifiedDate":null}],"name":"countyzone","schema":[{"columnName":"CountyId","dataType":"int","maxLenght":null,"isRequired":true},{"columnName":"County","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ShortName","dataType":"nvarchar","maxLenght":10,"isRequired":false},{"columnName":"ZoneNo","dataType":"int","maxLenght":null,"isRequired":false},{"columnName":"IsActive","dataType":"bit","maxLenght":null,"isRequired":false},{"columnName":"CreatedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"CreatedDate","dataType":"datetime","maxLenght":null,"isRequired":false},{"columnName":"ModifiedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ModifiedDate","dataType":"datetime","maxLenght":null,"isRequired":false}]}
127
* configure continueOnStepFailure = true
0
128
Then status 200
0
129
And def values = response.values
0
130
* configure continueOnStepFailure = true
0
187
* def countyData = karate.jsonPath(values, "$[?(@.CountyId == '" + CountyId + "')]")
0
188
* def countyZone = countyData[0].ZoneNo
0
189
And print countyZone
0
19:20:28.996 [print] 1
190
Given path '/internalapi/api/licensing/renewal/save'
0
191
* def dbSts = db.cleanHeap()
196
192
And header authorization = 'Bearer ' + strToken
0
193
And header Content-Type = 'application/json; charset=utf-8'
0
194
And header Accept = 'application/json; text/plain;*/*'
0
195
And configure continueOnStepFailure = true
0
196
And request {"mainLicenseId":'#(licenseId)',"associated":[],"notQualifiedApplication":'#(notQualifiedApplication)',"NotQualifiedComments":'#(notQlfdAppMessage)'}
0
197
When method Post
169
19:20:29.194 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/renewal/save 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > Content-Length: 108 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"mainLicenseId":"0111-22-129118","associated":[],"notQualifiedApplication":false,"NotQualifiedComments":""} 19:20:29.362 response time in milliseconds: 168 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:50:26 GMT 2 < Content-Length: 170 [{"appId":13851,"formId":1167,"childAppId":null,"mainApplicationId":"RE-22-106362-01","childApplicationId":null,"licensePermitTypeId":40,"description":"Restaurant-Beer"}]
198
* configure continueOnStepFailure = true
0
199
Then status 200
0
200
* def description = response[0].description
0
201
* def appId = response[0].appId
0
202
* def formId = response[0].formId
0
203
* def ApplicationId = response[0].mainApplicationId
0
204
And print ApplicationId
0
19:20:29.362 [print] RE-22-106362-01
205
And match ApplicationId contains 'RE-'
0
207
* def currentYear = '-'+getYearFunc()+'-'
1
208
And match ApplicationId contains currentYear
0
281
* call read('RenewalCommonMethods.feature@SaveAssociatedPrincipal') {}
569
>>
karate.UseCases.RenewalCommonMethods
339
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
0
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
464
Given path '/internalapi/api/licensing/app/static/principal/'+appId
0
466
And header Content-Type = 'application/json; charset=utf-8'
0
467
And header Accept = 'application/json; text/plain;*/*'
0
468
And header authorization = 'Bearer ' + strToken
0
469
And request {}
0
470
When method get
153
19:20:29.603 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/13851 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:29.756 response time in milliseconds: 153 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:26 GMT 1 < Content-Length: 1388 {"entities":[],"principals":[{"principalId":3273,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":true,"isFingerprintsApproved":true,"percentageOfOwners":20.0,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","entities":null,"numberOfShares":"","isSignature":false,"isRemove":false,"date":"2022-11-15T00:00:00","convictedOfCrime":"1","title":"15","isLicensed":true,"isAssociated":true,"person":{"personId":5564,"firstName":"Automation20221115192000","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T00:00:00","serialNo":0,"age":0,"choosedEntity":[]},"address":{"addressId":29317,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25229,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
471
Then status 200
0
472
* def personResponse = response
0
473
* def principalId = personResponse.principals[0].principalId
0
474
* def personId = personResponse.principals[0].person.personId
0
475
* def licFirstName = personResponse.principals[0].person.firstName
0
476
* def licLastName = personResponse.principals[0].person.lastName
0
477
* def licCommID = personResponse.principals[0].communication.id
0
478
* def licEmailID = personResponse.principals[0].communication.email
0
479
* def licAddressId = personResponse.principals[0].address.addressId
0
480
Given path '/internalapi/api/licensing/app/static/principal/save/'+appId
0
482
And header Content-Type = 'application/json; charset=utf-8'
0
483
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
492
* def prncipalName = 'AutoRenewal'+getDate1()
0
494
And header Accept = 'application/json; text/plain;*/*'
0
495
And header authorization = 'Bearer ' + strToken
0
498
And request {"entities":[],"principals":[{"principalId":'#(principalId)',"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":true,\"isNewPrincipal\":false}","entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":'#(personId)',"firstName":'#(licFirstName)',"middleName":"","lastName":'#(licLastName)',"suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":null},"address":{"addressId":'#(licAddressId)',"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":'#(licCommID)',"email":'#(licEmailID)',"confirmEmail":'#(licEmailID)',"phones":[]}},{"principalId":0,"convictedOfCrime":"","percentageOfOwners":"","isFingerprintRequired":"","isFingerprintsApproved":"","title":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"Test Address1","addressLine2":"","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":'#(licEmailID)',"confirmEmail":'#(licEmailID)'},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
0
499
When method post
183
19:20:29.758 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/save/13851 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 2220 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"entities":[],"principals":[{"principalId":3273,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":true,\"isNewPrincipal\":false}","entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":5564,"firstName":"Automation20221115192000","middleName":"","lastName":"AutoLastName","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":null},"address":{"addressId":29317,"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25229,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}},{"principalId":0,"convictedOfCrime":"","percentageOfOwners":"","isFingerprintRequired":"","isFingerprintsApproved":"","title":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"Test Address1","addressLine2":"","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":"automation@svam.com","confirmEmail":"automation@svam.com"},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]} 19:20:29.939 response time in milliseconds: 181 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:50:26 GMT 2 < Content-Length: 2326 {"entities":[],"principals":[{"principalId":3273,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":null,"entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":5564,"firstName":"Automation20221115192000","middleName":"","lastName":"AutoLastName","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":[]},"address":{"addressId":29317,"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25229,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}},{"principalId":3274,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":null,"entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":[]},"address":{"addressId":0,"appId":null,"addressLine1":"Test Address1","addressLine2":"","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":0,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
500
Then status 200
0
282
* call read('RenewalCommonMethods.feature@Fee_Check') {}
491
>>
karate.UseCases.RenewalCommonMethods
259
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
1
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
504
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
505
* def totalFees = licenseFees + fillingFees
0
506
And print totalFees
0
19:20:30.175 [print] 1060.0
507
And header Content-Type = 'application/json; charset=utf-8'
0
508
And header Accept = 'application/json; text/plain;*/*'
0
509
And header authorization = 'Bearer ' + strToken
0
510
And request {}
0
511
When method get
255
19:20:30.176 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13851 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:30.430 response time in milliseconds: 254 1 < 200 1 < Content-Length: 655 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:27 GMT [{"licenseName":"Restaurant - Beer","applicationId":"RE-22-106362-01","applicationTypeId":2,"appFeesId":0,"appId":13851,"feesRefId":6042,"initialFees":0.0,"licensingFees":480.00,"amendmentFees":0.0,"renewalFees":30.00,"totalFees":0.0,"filingFees":0.0,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
512
Then status 200
0
513
And def serverResponse = response
0
514
* def licTerm = serverResponse[0].term
0
515
* def licFees = serverResponse[0].licensingFees+''
0
516
* def licTermDesc = serverResponse[0].termDesc
0
517
* def licFeesRefId = serverResponse[0].feesRefId
0
519
* def licAncillaryFees = serverResponse[0].ancillaryFees+''
0
520
* def licfilingFees = serverResponse[0].filingFees+''
0
521
* def licInitialFees = serverResponse[0].initialFees
0
522
* def licRenewalFees = serverResponse[0].renewalFees
0
283
* match licRenewalFees == 30
0
284
* call read('RenewalCommonMethods.feature@Draft_Status_Check') {}
399
>>
karate.UseCases.RenewalCommonMethods
162
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
0
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
529
Given path '/internalapi/api/application/isApplicationInDraft/'+appId
0
531
And header Content-Type = 'application/json; charset=utf-8'
0
532
And header Accept = 'application/json; text/plain;*/*'
0
533
And header authorization = 'Bearer ' + strToken
0
534
And request {}
0
535
When method get
159
19:20:30.672 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/isApplicationInDraft/13851 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:30.830 response time in milliseconds: 158 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:27 GMT 1 < Content-Length: 4 true
536
Then status 200
0
537
* match response == 'true'
0
Scenario: [2.1:370] TC004_SLA_REN_Intake_Fees_Bond_Information_grid
ms: 25287
>>
Background:
3
* url BaseURL
0
19:20:30.922 karate.env system property was: svamqa
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* callonce read('LoginDetails.feature') { strToken:'#(strToken)'}
29
8
* def amendmentTypeId = 1
0
9
* def waitFunc =
0
function(timeinMiliSeconds) { // load java type into js engine var Thread = Java.type('java.lang.Thread'); Thread.sleep(timeinMiliSeconds*1000); }
17
* def DueDate =
0
function(numberOfDays){ var date = new Date(); date.setDate(date.getDate() + (numberOfDays)); return date.toString() }
25
* def DueDateCheck = DueDate(7)
1
27
* def getcorporateStructureCodeFunc =
0
function(value){ if (value === 'Individual'){ return 1; } else { return 2; } }
38
* def getStatusIndOrgStatus =
0
function(value){ if (value === 'Individual'){ return true; } else { return false; } }
49
* def getIndORgCodeFunc =
0
function(value1, value2){ if (value1 == 1 && value2 == 'Individual'){ return 1; } else if (value1 == 1 && value2 == 'Sole Propretior'){ return 2; } else if (value1 == 2 && value2 == 'Individual'){ return 1; } else if (value1 == 2 && value2 == 'Limited Liability Company'){ return 2; }else if (value1 == 2 && value2 == 'Corporation'){ return 3; }else if (value1 == 2 && value2 == 'Limited Liability Partnership'){ return 4; }else if (value1 == 2 && value2 == 'Limited Partnership'){ return 5; }else if (value1 == 2 && value2 == 'Partnership'){ return 6; }else if (value1 == 2 && value2 == 'Government'){ return 7; }else if (value1 == 2 && value2 == 'Sole Propretior'){ return 8; }else if (value1 == 2 && value2 == 'Trust'){ return 9; }else if (value1 == 2 && value2 == 'Estate'){ return 10; } else { return 1; } }
87
* def getFundDueDateMMYYDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
99
* def mmyydateFundDueDate = getFundDueDateMMYYDate(7)
1
100
And print mmyydateFundDueDate
0
19:20:30.954 [print] 11/22/2022
102
* def getAmendmentTypeIdFunc =
0
function(amendmentType){ if (amendmentType == 'ABC Officer'){ return 1; } else if (amendmentType == 'Additional Bar'){ return 2; } else if (amendmentType == 'Alteration'){ return 3; } else if (amendmentType == 'Alteration with Additional Bar'){ return 3; } }
121
* def waitFunc =
0
function(timeinMiliSeconds) { // load java type into js engine var Thread = Java.type('java.lang.Thread'); Thread.sleep(timeinMiliSeconds*1000); }
129
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
140
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
151
* def getMMMMDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MMMM dd, yyyy"); var date = new java.util.Date(); return sdf.format(date); }
161
* def mmmmdate = getMMMMDate()
0
163
* def getMMYYDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); return sdf.format(date); }
173
* def mmyydate = getMMYYDate()
0
175
* def getFundDueDateMMYYDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
187
* def mmyydateFundDueDate = getFundDueDateMMYYDate(7)
1
189
* def dateFnc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date( date.getTime() - java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
199
* def dateWithMonthsNameFnc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MMMM dd, yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date( date.getTime()); return sdf.format(dayAfter); }
208
* def dateWithMonthsName = dateWithMonthsNameFnc()
0
209
And print dateWithMonthsName
0
19:20:30.956 [print] November 15, 2022
297
* def IndOrgSelectionDropDown = 'Individual'
0
298
* def indOrgCode = getIndORgCodeFunc(IndOrgSelectionDropDown)
0
299
And print indOrgCode
0
19:20:30.957 [print] 1
300
* def isIndStatus = getStatusIndOrgStatus(IndOrgSelectionDropDown)
0
301
* def CorporateStructureDropDown = 'Individual'
0
302
* def CorporateStructureDropDownCode = getIndORgCodeFunc(indOrgCode,CorporateStructureDropDown)
0
303
And print CorporateStructureDropDownCode
0
19:20:30.957 [print] 1
304
* def firstName = 'Automation'
0
305
* def lastName = 'Automation'
0
306
* def legalName = firstName+ ' '+lastName
0
307
* def Address1 = 'Address1'
0
308
* def Address2 = 'Address2'
0
309
* def CityName = 'New York'
0
310
* def zipCode = '12345'
0
311
* def postalCode = '1234'
0
312
* def countryName = 'United States (US)'
0
313
* def emailId = 'automation@svam.com'
0
314
* def convictedOfCrime = '1'
0
315
* def percentageOfOwners = '20'
0
316
* def isFingerprintRequired = true
0
317
* def isFingerprintsApproved = true
0
318
* def isSignature = true
0
320
* def convictedOfCrime = '1'
0
321
* def PhoneNumber = '999-999-9999'
0
322
* def PhoneExtn = 1234
0
323
* def countryCode = '+91'
0
324
* def stateCode = 40
0
326
* def mainLicensePermitTypeId = 40
0
327
* def termInYears = 3
0
328
* def termDesc = 3+' Year (s)'
0
329
* def licenseFees = 960
0
330
* def fillingFees = 100
0
331
* def licAncillaryFees = 0
0
332
* def renewalFees = 30+''
0
333
* string productName = 'RestaurantBeer'+''
0
335
* def CountyId = 1
0
336
* def CountyName = 'New York'
0
337
* def totalFees = licenseFees+fillingFees+licAncillaryFees
0
338
* def splittedCityName = CityName.replaceAll(" ","")
0
340
* call read('LicensesCommonMethods.feature@IntakeLicensewithoutAssociatedLic') {}
2193
>>
karate.UseCases.LicensesCommonMethods
1662
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* App Intake *********************
290
* call read('LicensesCommonMethods.feature@GetCountyList') {}
1117
>>
karate.UseCases.LicensesCommonMethods
343
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
117
Given path '/internalapi/api/reference'
0
118
* def dbSts = db.cleanHeap()
199
119
And header authorization = 'Bearer ' + strToken
0
120
And header Content-Type = 'application/json;charset=utf-8'
0
121
And header Accept = 'text/plain'
0
# * def query = {name:countyzone&onlyActives:true}
123
And params {name:countyzone,onlyActives:true}
0
#And param onlyActives='true'
125
And request {}
0
126
When method get
139
19:20:32.440 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/reference?name=countyzone&onlyActives=true 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json;charset=utf-8 1 > Accept: text/plain 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:32.577 response time in milliseconds: 137 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:29 GMT 1 < Content-Length: 11712 {"values":[{"CountyId":1,"County":"New York","ShortName":"NEW","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T00:00:00","ModifiedBy":"esandoval","ModifiedDate":"2020-11-10T11:30:56.047"},{"CountyId":2,"County":"Kings","ShortName":"KING","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":3,"County":"Bronx","ShortName":"BRON","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":4,"County":"Queens","ShortName":"QUEE","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":5,"County":"Richmond","ShortName":"RICH","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":6,"County":"Nassau","ShortName":"NASS","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":7,"County":"Suffolk","ShortName":"SUFF","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":8,"County":"Westchester","ShortName":"WEST","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":9,"County":"Orange","ShortName":"ORAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":10,"County":"Putnam","ShortName":"PUTN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":11,"County":"Rockland","ShortName":"ROCK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":12,"County":"Albany","ShortName":"ALBA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":13,"County":"Clinton","ShortName":"CLIN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":14,"County":"Columbia","ShortName":"COLU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":15,"County":"Dutchess","ShortName":"DUTC","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":16,"County":"Essex","ShortName":"ESSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":17,"County":"Franklin","ShortName":"FRAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":18,"County":"Fulton","ShortName":"FULT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":19,"County":"Greene","ShortName":"GREE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":20,"County":"Hamilton","ShortName":"HAMI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":21,"County":"Montgomery","ShortName":"MONT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":22,"County":"Rensselaer","ShortName":"RENS","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":23,"County":"Saratoga","ShortName":"SARA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":24,"County":"Schenectady","ShortName":"SCHE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":25,"County":"Schoharie","ShortName":"SCHO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":26,"County":"Sullivan","ShortName":"SULL","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":27,"County":"Ulster","ShortName":"ULST","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":28,"County":"Warren","ShortName":"WARR","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":29,"County":"Washington","ShortName":"WASH","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":30,"County":"Allegany","ShortName":"ALLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":31,"County":"Cattaraugus","ShortName":"CATT","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":32,"County":"Chautauqua","ShortName":"CHAU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":33,"County":"Chemung","ShortName":"CHEM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":34,"County":"Erie","ShortName":"ERIE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":35,"County":"Genesee","ShortName":"GENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":36,"County":"Livingston","ShortName":"LIVI","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":37,"County":"Monroe","ShortName":"MONR","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":38,"County":"Niagara","ShortName":"NIAG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":39,"County":"Ontario","ShortName":"ONTA","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":40,"County":"Orleans","ShortName":"ORLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":41,"County":"Schuyler","ShortName":"SCHU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":42,"County":"Seneca","ShortName":"SENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":43,"County":"Steuben","ShortName":"STEU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":44,"County":"Wayne","ShortName":"WAYN","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":45,"County":"Wyoming","ShortName":"WYOM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":46,"County":"Yates","ShortName":"YATE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":47,"County":"Broome","ShortName":"BROO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":48,"County":"Chenango","ShortName":"CHEN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":49,"County":"Cortland","ShortName":"CORT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":50,"County":"Delaware","ShortName":"DELA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":51,"County":"Herkimer","ShortName":"HERK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":52,"County":"Jefferson","ShortName":"JEFF","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":53,"County":"Lewis","ShortName":"LEWI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":54,"County":"Madison","ShortName":"MADI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":55,"County":"Oneida","ShortName":"ONEI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":56,"County":"Onondaga","ShortName":"ONON","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":57,"County":"Oswego","ShortName":"OSWE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":58,"County":"Otsego","ShortName":"OTSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":59,"County":"St. Lawrence","ShortName":"ST L","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":60,"County":"Cayuga","ShortName":"CAYU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":61,"County":"Tioga","ShortName":"TIOG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":62,"County":"Tompkins","ShortName":"TOMP","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.6","ModifiedBy":null,"ModifiedDate":null}],"name":"countyzone","schema":[{"columnName":"CountyId","dataType":"int","maxLenght":null,"isRequired":true},{"columnName":"County","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ShortName","dataType":"nvarchar","maxLenght":10,"isRequired":false},{"columnName":"ZoneNo","dataType":"int","maxLenght":null,"isRequired":false},{"columnName":"IsActive","dataType":"bit","maxLenght":null,"isRequired":false},{"columnName":"CreatedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"CreatedDate","dataType":"datetime","maxLenght":null,"isRequired":false},{"columnName":"ModifiedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ModifiedDate","dataType":"datetime","maxLenght":null,"isRequired":false}]}
127
* configure continueOnStepFailure = true
0
128
Then status 200
0
129
And def values = response.values
0
130
* configure continueOnStepFailure = true
0
291
* def countyData = karate.jsonPath(values, "$[?(@.CountyId == '" + CountyId + "')]")
0
292
* def countyZone = countyData[0].ZoneNo
1
293
And print countyZone
0
19:20:32.594 [print] 1
294
Given path '/internalapi/api/licensing/selectapptype/savenewlicenseapp'
0
295
* def dbSts = db.cleanHeap()
105
296
And header authorization = 'Bearer ' + strToken
0
297
And header Content-Type = 'application/json; charset=utf-8'
0
298
And header Accept = 'application/json; text/plain;*/*'
0
#* def CountysId = <countyIds>
# And print CountysId
#* string CountysName = <countynames>
# And print CountysName
#* def mainLicensePermitTypeId = <LicensePermitTypeId>
# And print mainLicensePermitTypeId
#* string ProductType = <ProductTypes>
#* string LicenseDescription = <LicDescription>
# And print ProductType
309
And request {"mainLicensePermitTypeId":'#(mainLicensePermitTypeId)',"newPermitTypeIds":[],"combinedCraftId":null,"masterFileId":null,"isApplicableForTempPermit":false,"isNotQualified":false,"isChainRestaurant":false,"addBarList":[],"countyId":'#(CountyId)',"isApplicantCurrentLicensed":false,"isExistingManufacturer":false,"selectedLicense":null,"isAssociatedTempPermit":false}
0
311
When method post
189
19:20:32.700 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/selectapptype/savenewlicenseapp 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 327 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"mainLicensePermitTypeId":40,"newPermitTypeIds":[],"combinedCraftId":null,"masterFileId":null,"isApplicableForTempPermit":false,"isNotQualified":false,"isChainRestaurant":false,"addBarList":[],"countyId":1,"isApplicantCurrentLicensed":false,"isExistingManufacturer":false,"selectedLicense":null,"isAssociatedTempPermit":false} 19:20:32.889 response time in milliseconds: 189 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:29 GMT 1 < Content-Length: 234 [{"childAppId":null,"mainApplicationId":"NA-0111-22-119052","childApplicationId":null,"licensePermitTypeId":40,"description":"Restaurant-Beer","parentApplicationId":"NA-0111-22-119052","parentAppId":13852,"appId":13852,"formId":1165}]
312
* configure continueOnStepFailure = true
0
313
Then status 200
0
315
And def ApplicationId = response[0].mainApplicationId
0
316
And print ApplicationId
0
19:20:32.889 [print] NA-0111-22-119052
317
And match ApplicationId contains 'NA-'
0
319
* def currentYear = '-'+getYearFunc()+'-'+countyZone
1
320
And match ApplicationId contains currentYear
0
321
And def description = response[0].description
0
323
And def appId = response[0].appId
0
325
* def formId = response[0].formId
0
326
* def FormVersionId = response[0].FormVersionId
0
328
Given path '/internalapi/api/application/preview/'+appId
0
329
* def dbSts = db.cleanHeap()
84
330
And header authorization = 'Bearer ' + strToken
0
331
And header Content-Type = 'application/json; charset=utf-8'
0
332
And header Accept = 'application/json; text/plain;*/*'
0
333
And configure continueOnStepFailure = true
0
334
And request {}
0
335
When method get
161
19:20:32.974 request: 2 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13852 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > Content-Length: 2 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {} 19:20:33.136 response time in milliseconds: 162 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:50:29 GMT 2 < Content-Length: 185 {"applicationId":"NA-0111-22-119052","submitDate":null,"licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Draft"},"isLicenseApplication":true,"isPreFilled":false}
336
* configure continueOnStepFailure = true
0
337
Then status 200
0
338
And def licStatus = response.appStatus.statusDescription
0
339
And print licStatus
0
19:20:33.136 [print] Draft
340
And match licStatus == 'Draft'
0
341
* def CountyName = "New York"
0
342
* call read('LicensesCommonMethods.feature@FillAndSaveApplicantInformationPage') {county:'#(CountyName)'}
738
>>
karate.UseCases.LicensesCommonMethods
204
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
700
* def getDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
709
Given path '/internalapi/api/licensing/app/static/applicantinfo/save/'+appId
0
710
And header Content-Type = 'application/json; charset=utf-8'
0
712
* def autoFirstName = firstName + getDate()
0
713
* def legalName = autoFirstName + lastName
0
714
And header Accept = 'application/json; text/plain;*/*'
0
715
And header authorization = 'Bearer ' + strToken
0
716
And request {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":'#(indOrgCode)',"corporateStructure":'#(CorporateStructureDropDownCode)',"firstName":'#(autoFirstName)',"lastName":'#(lastName)',"middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":'#(legalName)',"id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":'#(IndOrgSelectionDropDown)',"corporateStructureText":'#(CorporateStructureDropDown)',"isIndividual":'#(isIndStatus)'},"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"2","phoneTypeText":"Office","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}}
0
717
When method post
202
19:20:33.670 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/applicantinfo/save/13852 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2167 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":1,"corporateStructure":1,"firstName":"Automation20221115192033","lastName":"Automation","middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":"Automation20221115192033Automation","id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":"Individual","corporateStructureText":"Individual","isIndividual":true},"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"2","phoneTypeText":"Office","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}} 19:20:33.870 response time in milliseconds: 200 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:31 GMT 1 < Content-Length: 2191 {"businessInfo":{"id":0,"website":null,"isLicensed":false,"isAssociated":false,"businessEntity":{"id":3984,"individualOrganization":"1","corporateStructure":1,"isEmployeeForSoleProprietor":null,"firstName":"Automation20221115192033","lastName":"Automation","middleName":"AutoMidName","ssn":"","fein":"","legalName":"Automation20221115192033Automation","suffix":"1","corporateStructureText":"Individual","individualOrganizationText":"Individual","isIndividual":true},"address":{"addressId":29319,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"US","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"NY","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25231,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":7782,"phoneType":3,"countryCode":"91","phone":"999-999-9999","phoneExtension":"1234"}]}},"premisesInfo":{"id":13156,"dba":null,"countyId":1,"countyName":"New York","isDbaSearched":null,"isPremisesRequired":true,"licensePermitID":"","address":{"addressId":29320,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"US","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"NY","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25232,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":7783,"phoneType":2,"countryCode":"+91","phone":"999-999-9999","phoneExtension":"1234"}]}},"applicantDetail":{"id":9748,"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"isPhysicalChange":null,"applicantStatement":{"id":4289,"nameOfApplicant":null,"title":null,"signature":null,"date":null}}}
718
Then status 200
0
343
* call read('LicensesCommonMethods.feature@FillAndSavePrincipalPage') {}
663
>>
karate.UseCases.LicensesCommonMethods
198
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
745
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
754
Given path '/internalapi/api/licensing/app/static/principal/save/'+appId
0
755
And header Content-Type = 'application/json; charset=utf-8'
0
756
* def prncipalName = firstName + getDate1()
0
757
* def dt = licDate()
0
758
And header Accept = 'application/json; text/plain;*/*'
0
759
And header authorization = 'Bearer ' + strToken
0
760
And request {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":'#(convictedOfCrime)',"percentageOfOwners":'#(percentageOfOwners)',"isFingerprintRequired":'#(isFingerprintRequired)',"isFingerprintsApproved":'#(isFingerprintsApproved)',"title":"15","numberOfShares":"","isSignature":false,"date":'#(dt)',"address":{"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"stateId":'#(stateCode)',"county":'#(CountyName)',"city":"New York","zipCode":'#(zipCode)',"zip4":'#(postalCode)',"country":'#(countryName)',"stateName":'#(CityName)',"countryId":229,"zip":'#(zipCode)'},"person":{"personId":0,"firstName":'#(prncipalName)',"middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":'#(dt)',"age":"","choosedEntity":null,"ssnFormat":"","suffixText":"JR"},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":'#(emailId)',"confirmEmail":'#(emailId)'},"titleText":"Vice President","convictedOfCrimeText":"No","disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
0
# {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":"" ,"percentageOfOwners":"" ,"isFingerprintRequired":true ,"isFingerprintsApproved":true ,"title":"","dcjsFingerPrintStatus":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"","addressLine2":"","stateId":40,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"New York","countryId":229,"zip":""},"person":{"personId":0,"firstName":"XA","middleName":"","lastName":"sa","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":null,"confirmEmail":null},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
762
When method post
195
19:20:34.345 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/save/13852 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 1107 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":"1","percentageOfOwners":"20","isFingerprintRequired":true,"isFingerprintsApproved":true,"title":"15","numberOfShares":"","isSignature":false,"date":"2022-11-15T19:20:34.344Z","address":{"addressLine1":"Address1","addressLine2":"Address2","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation20221115192034","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T19:20:34.344Z","age":"","choosedEntity":null,"ssnFormat":"","suffixText":"JR"},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":"automation@svam.com","confirmEmail":"automation@svam.com"},"titleText":"Vice President","convictedOfCrimeText":"No","disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]} 19:20:34.539 response time in milliseconds: 194 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:31 GMT 1 < Content-Length: 1390 {"entities":[],"principals":[{"principalId":3275,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":true,"isFingerprintsApproved":true,"percentageOfOwners":20.0,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","entities":null,"numberOfShares":"","isSignature":false,"isRemove":false,"date":"2022-11-15T00:00:00","convictedOfCrime":"1","title":"15","isLicensed":false,"isAssociated":false,"person":{"personId":5566,"firstName":"Automation20221115192034","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T00:00:00","serialNo":0,"age":0,"choosedEntity":[]},"address":{"addressId":29321,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25233,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
763
Then status 200
0
344
* call read('LicensesCommonMethods.feature@FillAndSaveRepresentativePage') {}
675
>>
karate.UseCases.LicensesCommonMethods
181
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Representative *********************
790
Given path '/internalapi/api/licensing/app/static/rep/save/'+appId
0
791
And header authorization = 'Bearer ' + strToken
0
792
And request {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":'#(CountyName)',"city":'#(CityName)',"zipCode":"10011","country":"United States (US)","stateName":'#(CityName)',"countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""}
0
793
When method post
179
19:20:35.052 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/rep/save/13852 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 897 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":"New York","city":"New York","zipCode":"10011","country":"United States (US)","stateName":"New York","countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""} 19:20:35.227 response time in milliseconds: 175 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:32 GMT 1 < Content-Length: 4 true
794
Then status 200
0
795
And def serverResponse = response
0
345
* call read('LicensesCommonMethods.feature@FillAndSaveMethodOfOperationPage') {}
1051
>>
karate.UseCases.LicensesCommonMethods
186
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
6389
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
6398
Given path '/internalapi/api/licensing/app/save'
0
6399
And header Content-Type = 'application/json; charset=utf-8'
0
6400
* def prncipalName = firstName + getDate1()
0
6401
* def dt = licDate()
0
6402
And header Accept = 'application/json; text/plain;*/*'
0
6403
And header authorization = 'Bearer ' + strToken
0
6404
And request {"isApproved":false,"appId":'#(appId)',"formID":1165,"applicationID":"","formName":"","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":1,"formCategory":{},"formCategoryId":1,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and Policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1993,"key":"","label":"Will the business employ a manager?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1994,"key":"","label":"If no, will the principals manage?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1995,"key":"","label":"If Premises is not a caterer establishment, will the premises periodically close to host private events?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1996,"key":"","label":"If Yes, How Frequently?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"Yes","fieldID":1997,"key":"","label":"Will the premises have music?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1998,"key":"","label":"If Live Music, Give Details","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1999,"key":"","label":"Will the premises use the service of an event promoter?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2000,"key":"","label":"Will the Premises Permit Dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2001,"key":"","label":"Will there be exotic dancing, including but not limited to topless entertainment, pole dancing and or lap dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2002,"key":"","label":"Will there be topless entertainment?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":16,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2003,"key":"","label":"Will Security Personnel be used at the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":17,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2004,"key":"","label":"How many?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":18,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2005,"key":"","label":"Provide your proprietary security guard employer unique Identification number assigned to the business by the NYS Department of State Division of Licensing Services or the name of the security company through which the security personnel will be hired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":19,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2006,"key":"","label":"Provide a detailed plan of supervision for the premises to be licensed. Clearly describe how you will maintain control and order over the licensed premises. How will you monitor alcohol sales and prevent sales to minors and sales to intoxicated persons? How will you handle unruly patrons, altercations, etc., to prevent the premises from becoming disorderly?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":20,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2007,"key":"","label":"Are all responses provided in the application consistent with the information provided to the municipality or community board within the standardized notice form for providing thirty day advance notice","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":21,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2008,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":22,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"4","fieldID":2051,"key":"","label":"If Yes, check all that apply","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2052,"key":"","label":"Who will be permitted to dance?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"Method_of_Operation","key":"0","label":"Method Of Operation","order":11,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isStatic":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"parentSection":"","subSections":[],"sectionFieldOrders":[],"address":{"addressLine1":"","addressLine2":"","stateId":null,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"","countryId":229}}],"formVersionId":1699,"version":25,"licenseDescription":"Restaurant-Beer","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"showAbcOfficer":false,"showCorpChange":false,"showEndorsement":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant_Information","Principal","Representative","Landlord_Identification","Personal_Questionnaire"],"showPQ":true,"showCC":false,"showManuOnPrem":false,"licPermitTypeId":40,"tabVisitied":{"Applicant Information":false,"Principal":false,"Representative":false,"Landlord Identification":false,"Personal Questionnaire":false}}
0
6406
When method post
183
19:20:36.094 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 12993 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13852,"formID":1165,"applicationID":"","formName":"","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":1,"formCategory":{},"formCategoryId":1,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and Policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1993,"key":"","label":"Will the business employ a manager?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1994,"key":"","label":"If no, will the principals manage?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1995,"key":"","label":"If Premises is not a caterer establishment, will the premises periodically close to host private events?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1996,"key":"","label":"If Yes, How Frequently?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"Yes","fieldID":1997,"key":"","label":"Will the premises have music?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1998,"key":"","label":"If Live Music, Give Details","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1999,"key":"","label":"Will the premises use the service of an event promoter?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2000,"key":"","label":"Will the Premises Permit Dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2001,"key":"","label":"Will there be exotic dancing, including but not limited to topless entertainment, pole dancing and or lap dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2002,"key":"","label":"Will there be topless entertainment?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":16,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2003,"key":"","label":"Will Security Personnel be used at the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":17,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2004,"key":"","label":"How many?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":18,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2005,"key":"","label":"Provide your proprietary security guard employer unique Identification number assigned to the business by the NYS Department of State Division of Licensing Services or the name of the security company through which the security personnel will be hired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":19,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2006,"key":"","label":"Provide a detailed plan of supervision for the premises to be licensed. Clearly describe how you will maintain control and order over the licensed premises. How will you monitor alcohol sales and prevent sales to minors and sales to intoxicated persons? How will you handle unruly patrons, altercations, etc., to prevent the premises from becoming disorderly?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":20,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2007,"key":"","label":"Are all responses provided in the application consistent with the information provided to the municipality or community board within the standardized notice form for providing thirty day advance notice","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":21,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2008,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":22,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"4","fieldID":2051,"key":"","label":"If Yes, check all that apply","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2052,"key":"","label":"Who will be permitted to dance?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"Method_of_Operation","key":"0","label":"Method Of Operation","order":11,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isStatic":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"parentSection":"","subSections":[],"sectionFieldOrders":[],"address":{"addressLine1":"","addressLine2":"","stateId":null,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"","countryId":229}}],"formVersionId":1699,"version":25,"licenseDescription":"Restaurant-Beer","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"showAbcOfficer":false,"showCorpChange":false,"showEndorsement":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant_Information","Principal","Representative","Landlord_Identification","Personal_Questionnaire"],"showPQ":true,"showCC":false,"showManuOnPrem":false,"licPermitTypeId":40,"tabVisitied":{"Applicant Information":false,"Principal":false,"Representative":false,"Landlord Identification":false,"Personal Questionnaire":false}} 19:20:36.275 response time in milliseconds: 181 1 < 200 1 < Content-Length: 51 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:33 GMT {"appId":13852,"applicationId":"NA-0111-22-119052"}
6407
Then status 200
0
346
* call read('LicensesCommonMethods.feature@FeesValidation') {amount:'#(totalFees)'}
3423
>>
karate.UseCases.LicensesCommonMethods
2062
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
810
* def futureDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
820
* def futureDate = futureDateFunc()
1
822
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
832
* def date = getDate2()
0
834
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
835
And header Content-Type = 'application/json; charset=utf-8'
0
836
And header Accept = 'application/json; text/plain;*/*'
0
837
And header authorization = 'Bearer ' + strToken
0
838
And request {}
0
839
When method get
226
19:20:37.639 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13852 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:37.863 response time in milliseconds: 224 1 < 200 1 < Content-Length: 658 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:35 GMT [{"licenseName":"Restaurant - Beer","applicationId":"NA-0111-22-119052","applicationTypeId":1,"appFeesId":0,"appId":13852,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":0.0,"totalFees":0.0,"filingFees":100.00,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
840
Then status 200
0
841
And def serverResponse = response
0
842
* def licTerm = serverResponse[0].term
0
843
* def licFees = serverResponse[0].licensingFees+''
0
844
* def licTermDesc = serverResponse[0].termDesc
0
845
* def licFeesRefId = serverResponse[0].feesRefId
0
846
* def licAncillaryFees = serverResponse[0].ancillaryFees+''
0
847
* def licfilingFees = serverResponse[0].filingFees+''
0
848
* def licInitialFees = serverResponse[0].initialFees
0
849
* def bndFees = serverResponse[0].bondFee
0
850
* def isBondRequired = serverResponse[0].isBondRequired
0
851
And def totalFees = serverResponse[0].licensingFees+serverResponse[0].filingFees
0
852
And print totalFees
0
19:20:37.864 [print] 1060.0
855
Given path '/internalapi/api/notification/SaveNotification'
0
857
And header Content-Type = 'application/json; charset=utf-8'
0
858
And header Accept = 'application/json; text/plain;*/*'
0
859
And header authorization = 'Bearer ' + strToken
0
860
And request {"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}
0
861
When method post
154
19:20:37.865 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/notification/SaveNotification 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 2006 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13852,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13852,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13852,"createdBy":"Tarun Gupta"} 19:20:38.019 response time in milliseconds: 154 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:50:35 GMT 2 < Content-Length: 5 false
862
Then status 200
0
863
And print response
0
19:20:38.019 [print] false
# And header Content-Type = 'application/json; charset=utf-8'
869
Given path 'internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
871
And header Accept = 'application/json; text/plain;*/*'
0
872
And header authorization = 'Bearer ' + strToken
0
874
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":'#(amount)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":"0.00","totalFees":'#(totalFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(licTerm)',"termDesc":'#(licTermDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
0
875
When method post
212
19:20:38.021 request: 3 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13852/false 3 > Accept: application/json; text/plain;*/* 3 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 3 > Content-Type: application/json; charset=UTF-8 3 > Content-Length: 5071 3 > Host: slaleapqaapi.svam.com 3 > Connection: Keep-Alive 3 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 3 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13852,"slaintakeDate":"2022-11-15T19:20:37.637Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:20:37.637Z","amount":1060}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119052","applicationTypeId":1,"appFeesId":0,"appId":13852,"feesRefId":6039,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"0.00","totalFees":1060.0,"filingFees":"100","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":1060.0,"amountReceived":"0.00","waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-11-22T19:20:37.634Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13852,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13852,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13852,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13852,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13852,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13852,"createdBy":"Tarun Gupta"},"taskId":null} 19:20:38.232 response time in milliseconds: 211 3 < 200 3 < Content-Length: 4 3 < Content-Type: application/json; charset=utf-8 3 < Server: Microsoft-IIS/10.0 3 < Strict-Transport-Security: max-age=2592000 3 < X-Powered-By: ASP.NET 3 < Date: Tue, 15 Nov 2022 13:50:35 GMT true
876
Then status 200
0
878
Given path 'internalapi/api/licensing/fees/check-payments/get/'+appId
0
879
And header authorization = 'Bearer ' + strToken
0
880
And request {}
0
881
When method get
164
19:20:38.233 request: 4 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/check-payments/get/13852 4 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 4 > Content-Type: application/json; charset=UTF-8 4 > Content-Length: 2 4 > Host: slaleapqaapi.svam.com 4 > Connection: Keep-Alive 4 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 4 > Accept-Encoding: gzip,deflate {} 19:20:38.397 response time in milliseconds: 163 4 < 200 4 < Content-Length: 441 4 < Content-Type: application/json; charset=utf-8 4 < Server: Microsoft-IIS/10.0 4 < Strict-Transport-Security: max-age=2592000 4 < X-Powered-By: ASP.NET 4 < Date: Tue, 15 Nov 2022 13:50:35 GMT [{"checkDetailId":2334,"appId":13852,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T00:00:00","slaintakeDate":"2022-11-15T00:00:00","amount":1060.0000,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T08:50:35.54","modifiedBy":null,"modifiedDate":null}]
882
Then status 200
0
883
And def checkDetailId = response[0].checkDetailId
0
884
And print checkDetailId
0
19:20:38.398 [print] 2334
885
* def amount = response[0].amount
0
886
* def underpaidAmount = totalFees-amount
0
888
And print 'underpaidAmount- ',underpaidAmount
0
19:20:38.398 [print] underpaidAmount- 0.0
890
Given path '/internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
891
And header Content-Type = 'application/json; charset=utf-8'
0
892
* def futureDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
903
* def futureDate = futureDateFunc()
2
904
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
913
* def date = getDate2()
0
915
And header Accept = 'application/json; text/plain;*/*'
0
916
And header authorization = 'Bearer ' + strToken
0
917
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":'#(totalFees)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":'#(licInitialFees)',"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":'#(renewalFees)',"totalFees":'#(totalFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":'#(licAncillaryFees)',"isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
1
920
When method post
204
19:20:38.402 request: 5 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13852/false 5 > Content-Type: application/json; charset=utf-8 5 > Accept: application/json; text/plain;*/* 5 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 5 > Content-Length: 5068 5 > Host: slaleapqaapi.svam.com 5 > Connection: Keep-Alive 5 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 5 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13852,"slaintakeDate":"2022-11-15T19:20:38.401Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:20:38.401Z","amount":1060.0}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119052","applicationTypeId":1,"appFeesId":0,"appId":13852,"feesRefId":6039,"initialFees":0.0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"30","totalFees":1060.0,"filingFees":"100","ancillaryFees":"0","isFeesWaived":false,"underPaymentAmount":1060.0,"amountReceived":"0.00","waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-11-22T19:20:37.634Z","emailNotificationDetail":{"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13852,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13852,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13852,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13852,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13852,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13852,"createdBy":"Tarun Gupta"},"taskId":null} 19:20:38.605 response time in milliseconds: 203 5 < 200 5 < Content-Length: 4 5 < Content-Type: application/json; charset=utf-8 5 < Server: Microsoft-IIS/10.0 5 < Strict-Transport-Security: max-age=2592000 5 < X-Powered-By: ASP.NET 5 < Date: Tue, 15 Nov 2022 13:50:35 GMT true
921
Then status 200
0
# ********* SAVE Application Details To Save *********************
928
Given path '/internalapi/api/licensing/app/save'
0
929
And header authorization = 'Bearer ' + strToken
0
930
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":'#(CityName)',"fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
2
931
When method post
284
19:20:38.613 request: 6 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 6 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 6 > Content-Type: application/json; charset=UTF-8 6 > Content-Length: 30721 6 > Host: slaleapqaapi.svam.com 6 > Connection: Keep-Alive 6 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 6 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13852,"formID":1165,"applicationID":"NA-0111-22-119052","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:20:38.891 response time in milliseconds: 277 6 < 200 6 < Content-Length: 51 6 < Content-Type: application/json; charset=utf-8 6 < Server: Microsoft-IIS/10.0 6 < Strict-Transport-Security: max-age=2592000 6 < X-Powered-By: ASP.NET 6 < Date: Tue, 15 Nov 2022 13:50:36 GMT {"appId":13852,"applicationId":"NA-0111-22-119052"}
932
Then status 200
0
935
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
936
And header authorization = 'Bearer ' + strToken
0
937
And header Content-Type = 'application/json; charset=utf-8'
0
938
And header Accept = 'application/json; text/plain;*/*'
0
939
And request ""
0
940
When method get
225
19:20:38.894 request: 7 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13852 7 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 7 > Content-Type: application/json; charset=utf-8 7 > Accept: application/json; text/plain;*/* 7 > Content-Length: 0 7 > Host: slaleapqaapi.svam.com 7 > Connection: Keep-Alive 7 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 7 > Accept-Encoding: gzip,deflate 19:20:39.117 response time in milliseconds: 223 7 < 200 7 < Content-Length: 660 7 < Content-Type: application/json; charset=utf-8 7 < Server: Microsoft-IIS/10.0 7 < Strict-Transport-Security: max-age=2592000 7 < X-Powered-By: ASP.NET 7 < Date: Tue, 15 Nov 2022 13:50:36 GMT [{"licenseName":"Restaurant - Beer","applicationId":"NA-0111-22-119052","applicationTypeId":1,"appFeesId":3072,"appId":13852,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":0.0,"totalFees":0.0,"filingFees":100.00,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
941
Then status 200
0
942
And print response[0].appFeesId
0
19:20:39.118 [print] 3072
943
And def appFeesId1 = response[0].appFeesId
0
944
And def feesRefId1 = response[0].feesRefId
0
945
And print appFeesId1
0
19:20:39.118 [print] 3072
946
And print feesRefId1
0
19:20:39.118 [print] 6039
947
And def applicationTypeId = response[0].applicationTypeId
0
948
And print applicationTypeId
0
19:20:39.119 [print] 1
# ********* Save PAYMENT *********************
951
Given path '/internalapi/api/licensing/fees/details/save/'+appId +'/false'
0
953
* def slaDate = licFeesDate()
1
954
* def slaaDate = licDate()
0
955
* def licInitialFees1 = licInitialFees+''
0
956
And print licInitialFees1
0
19:20:39.120 [print] 0
957
* def renewalFees1 = renewalFees+''
0
958
And print renewalFees1
0
19:20:39.120 [print] 30
959
* def totalFees1 = totalFees+''
0
961
And print totalFees1
0
19:20:39.120 [print] 1060
962
* def licAncillaryFees1 = licAncillaryFees+''
0
963
* def licfilingFees1 = licfilingFees+''
0
965
And header authorization = 'Bearer ' + strToken
0
966
And request {"checks":[{"checkDetailId":'#(checkDetailId)',"appId":'#(appId)',"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":'#(date)',"slaintakeDate":'#(date)',"amount":'#(amount)',"appliedTo":null,"amountUsed":'#(amount)',"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":'#(date)',"modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":'#(licFeesRefId)',"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":"0.00","totalFees":'#(totalFees1)',"filingFees":'#(licfilingFees1)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(underpaidAmount)',"amountReceived":'#(amount)',"waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":'#(appId)',"checkDetailId":'#(checkDetailId)',"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":'#(amount)',"amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
0
971
When method post
296
19:20:39.122 request: 8 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13852/false 8 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 8 > Content-Type: application/json; charset=UTF-8 8 > Content-Length: 5458 8 > Host: slaleapqaapi.svam.com 8 > Connection: Keep-Alive 8 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 8 > Accept-Encoding: gzip,deflate {"checks":[{"checkDetailId":2334,"appId":13852,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T19:20:38.401Z","slaintakeDate":"2022-11-15T19:20:38.401Z","amount":1060.0,"appliedTo":null,"amountUsed":1060.0,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T19:20:38.401Z","modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119052","applicationTypeId":1,"appFeesId":6039,"appId":13852,"feesRefId":6039,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"0.00","totalFees":"1060","filingFees":"100","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":1060.0,"waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":13852,"checkDetailId":2334,"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":1060.0,"amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":"2022-11-22T19:20:37.634Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13852,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13852,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13852,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13852,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13852,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13852,"createdBy":"Tarun Gupta"},"taskId":null} 19:20:39.416 response time in milliseconds: 293 8 < 200 8 < Content-Length: 4 8 < Content-Type: application/json; charset=utf-8 8 < Server: Microsoft-IIS/10.0 8 < Strict-Transport-Security: max-age=2592000 8 < X-Powered-By: ASP.NET 8 < Date: Tue, 15 Nov 2022 13:50:36 GMT true
972
Then status 200
0
973
And print response
0
19:20:39.416 [print] true
# ********* SAVE Application Details To Save *********************
978
Given path '/internalapi/api/licensing/app/save'
0
979
And header authorization = 'Bearer ' + strToken
0
980
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":'#(CityName)',"fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
1
981
When method post
280
19:20:39.421 request: 9 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 9 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 9 > Content-Type: application/json; charset=UTF-8 9 > Content-Length: 30721 9 > Host: slaleapqaapi.svam.com 9 > Connection: Keep-Alive 9 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 9 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13852,"formID":1165,"applicationID":"NA-0111-22-119052","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:20:39.698 response time in milliseconds: 277 9 < 200 9 < Content-Length: 51 9 < Content-Type: application/json; charset=utf-8 9 < Server: Microsoft-IIS/10.0 9 < Strict-Transport-Security: max-age=2592000 9 < X-Powered-By: ASP.NET 9 < Date: Tue, 15 Nov 2022 13:50:36 GMT {"appId":13852,"applicationId":"NA-0111-22-119052"}
982
Then status 200
0
983
And def serverResponse = response
0
348
* call read('LicensesCommonMethods.feature@SubmitLicenseAndValidateLicStatus') {expStatus:'Awaiting Review'}
2081
>>
karate.UseCases.LicensesCommonMethods
1199
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Application SUBMIT *********************
1099
Given path '/internalapi/api/licensing/app/submit'
0
1100
And header authorization = 'Bearer ' + strToken
0
1101
And request {"appId":'#(appId)',"wfType":null}
0
1102
When method post
272
19:20:40.586 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/submit 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 29 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"appId":13852,"wfType":null} 19:20:40.856 response time in milliseconds: 270 1 < 200 1 < Content-Length: 123 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:38 GMT {"success":true,"submittedApps":[{"success":true,"taskId":0,"appId":13852,"applicationId":"NA-0111-22-119052","error":""}]}
1103
Then status 200
0
1104
And def serverResponse = response
0
1105
And match response.success == true
0
1106
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
923
>>
karate.UseCases.LicensesCommonMethods
414
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
255
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
154
19:20:41.623 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13852 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:41.776 response time in milliseconds: 153 1 < 200 1 < Content-Length: 216 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:38 GMT {"applicationId":"NA-0111-22-119052","submitDate":"2022-11-15T08:50:38.073","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:20:41.776 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
0
349
* call read('LicensesCommonMethods.feature@AssignApplicationsToExaminer') {}
1584
>>
karate.UseCases.LicensesCommonMethods
1051
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* AssignApplicationsSaveDigestDataToExaminer *********************
1139
Given path '/internalapi/api/licensing/examiner/assignApplicationsToExaminer'
0
1140
And header authorization = 'Bearer ' + strToken
0
1141
And request [{"appId":'#(appId)',"examinerId":1069,"priority":"Normal"}]
0
1142
When method post
222
19:20:42.317 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/examiner/assignApplicationsToExaminer 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 55 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate [{"appId":13852,"examinerId":1069,"priority":"Normal"}] 19:20:42.537 response time in milliseconds: 220 1 < 200 1 < Content-Length: 5 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:39 GMT false
1143
And def serverResponse = response
0
1144
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
826
>>
karate.UseCases.LicensesCommonMethods
332
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
178
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
151
19:20:43.202 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13852 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:43.351 response time in milliseconds: 149 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:39 GMT 1 < Content-Length: 216 {"applicationId":"NA-0111-22-119052","submitDate":"2022-11-15T08:50:38.073","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:20:43.352 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1
350
* call read('LicensesCommonMethods.feature@ExaminerReviewApprovalToLB') {}
1837
>>
karate.UseCases.LicensesCommonMethods
1275
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Examiner Review Approval to LB *********************
1149
* def summisionDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS"); var date = new java.util.Date(); return sdf.format(date); }
1157
Given path '/internalapi/api/licensing/examiner-review/SaveNewLicense'
0
1158
* def formatedSumbitDate = summisionDate()
0
1159
And header authorization = 'Bearer ' + strToken
0
1160
And header current-wfroleid = 4
0
1161
And request {"isFingerPrintsApproved":false,"isFingerPrintsRequired":false,"isCorpLLCDissolved":false,"isCorpLLCDTaken":false,"isSendPDLetter":false,"isDisable500LB_FBPT":false,"isDisableLBForPD":false,"isDisableLBForCaseClosed":false,"isDisableLateRenewalAndUnderpayment":false,"isLiquidatorPermitHasCompleted":-1,"isSubmit":true,"fieldDeficiencies":[],"masterFileData":[],"combinedCraftData":[],"application":{"applicationCategory":1,"appId":'#(appId)',"applicationId":'#(ApplicationId)',"licePermitTypeId":null,"applicationTypeId":1,"formVersionId":1231,"formId":'#(formId)',"legalName":'#(legalName)',"submitDate":'#(formatedSumbitDate)',"isGISRequired":null,"licenseDescription":'#(description)',"recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":'#(CityName)',"priority":"Normal","expirationDate":null,"appStatusId":3,"taskStatus":"Awaiting Review","taskId":1026,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":true,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":false,"isNotQualified":false,"eventDate":null,"appStatus":{"appStatusId":3,"statusDescription":"Under Review","isActive":true,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":{"appExaminerId":1069,"appId":'#(appId)',"examinerId":1069,"name":null,"assignDate":'#(formatedSumbitDate)',"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"assignAppToLB":null,"licePermitType":{"licPermitTypeId":'#(mainLicensePermitTypeId)',"type":"1","category":"1","product":'#(productName)',"class":null,"description":null,"sectionOfLaw":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isTempPermit":false,"isELicensingPermit":false,"isAdditionalBar":false},"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":'#(mainLicensePermitTypeId)',"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":true,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":'#(formatedSumbitDate)'},"appId":'#(appId)',"notificationTypeId":2028,"applicationType":1,"decisionType":{"name":"Send to Licensing Board","value":2},"emailNotificationModel":{"applicant":{},"attorney":{},"communityBoard":{},"other":{}},"hasErrors":[],"taskId":1026,"newComments":"","recommendedDecisionId":null};
0
1162
When method post
269
19:20:43.927 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/examiner-review/SaveNewLicense 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > current-wfroleid: 4 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 3055 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isFingerPrintsApproved":false,"isFingerPrintsRequired":false,"isCorpLLCDissolved":false,"isCorpLLCDTaken":false,"isSendPDLetter":false,"isDisable500LB_FBPT":false,"isDisableLBForPD":false,"isDisableLBForCaseClosed":false,"isDisableLateRenewalAndUnderpayment":false,"isLiquidatorPermitHasCompleted":-1,"isSubmit":true,"fieldDeficiencies":[],"masterFileData":[],"combinedCraftData":[],"application":{"applicationCategory":1,"appId":13852,"applicationId":"NA-0111-22-119052","licePermitTypeId":null,"applicationTypeId":1,"formVersionId":1231,"formId":1165,"legalName":"Automation20221115192033Automation","submitDate":"2022-11-15T19:20:43.927","isGISRequired":null,"licenseDescription":"Restaurant-Beer","recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":"New York","priority":"Normal","expirationDate":null,"appStatusId":3,"taskStatus":"Awaiting Review","taskId":1026,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":true,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":false,"isNotQualified":false,"eventDate":null,"appStatus":{"appStatusId":3,"statusDescription":"Under Review","isActive":true,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":{"appExaminerId":1069,"appId":13852,"examinerId":1069,"name":null,"assignDate":"2022-11-15T19:20:43.927","isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"assignAppToLB":null,"licePermitType":{"licPermitTypeId":40,"type":"1","category":"1","product":"RestaurantBeer","class":null,"description":null,"sectionOfLaw":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isTempPermit":false,"isELicensingPermit":false,"isAdditionalBar":false},"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":40,"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":true,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":"2022-11-15T19:20:43.927"},"appId":13852,"notificationTypeId":2028,"applicationType":1,"decisionType":{"name":"Send to Licensing Board","value":2},"emailNotificationModel":{"applicant":{},"attorney":{},"communityBoard":{},"other":{}},"hasErrors":[],"taskId":1026,"newComments":"","recommendedDecisionId":null} 19:20:44.196 response time in milliseconds: 269 1 < 200 1 < Content-Length: 4 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:41 GMT true
1163
Then status 200
0
1164
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
1004
>>
karate.UseCases.LicensesCommonMethods
369
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
216
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
149
19:20:45.044 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13852 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:45.193 response time in milliseconds: 148 1 < 200 1 < Content-Length: 216 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:42 GMT {"applicationId":"NA-0111-22-119052","submitDate":"2022-11-15T08:50:38.073","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:20:45.194 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1
351
* call read('LicensesCommonMethods.feature@LBClaimingQueue') {}
1576
>>
karate.UseCases.LicensesCommonMethods
952
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* LB Claiming Queue *********************
1249
Given path 'internalapi/api/licensing/claiming-queue/add/'+appId +'/1069'
0
1250
And header authorization = 'Bearer ' + strToken
0
1251
And header current-wfroleid = 5
0
1252
And request {}
0
1253
When method post
151
19:20:45.829 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/claiming-queue/add/13852/1069 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > current-wfroleid: 5 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:45.979 response time in milliseconds: 150 1 < 200 1 < Content-Length: 4 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:42 GMT true
1254
Then status 200
0
1255
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
798
>>
karate.UseCases.LicensesCommonMethods
315
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
166
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
147
19:20:46.626 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13852 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:46.771 response time in milliseconds: 145 1 < 200 1 < Content-Length: 216 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:44 GMT {"applicationId":"NA-0111-22-119052","submitDate":"2022-11-15T08:50:38.073","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:20:46.772 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
0
352
* def expirationDate = fundDueDateFunc(10)
1
353
* call read('LicensesCommonMethods.feature@LBApprovalWithDueDate') {approvalName:'Approved', expStatus:'Approved'}
1979
>>
karate.UseCases.LicensesCommonMethods
1346
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
1
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
2
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* LB Approval *********************
2346
Given path '/internalapi/api/licensing/search/GetEmailNotificationByAppIdAndNotificationTypeId/'+appId+'/0'
0
2347
And header authorization = 'Bearer ' + strToken
0
2348
And request ''
0
2349
When method get
148
19:20:47.417 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/search/GetEmailNotificationByAppIdAndNotificationTypeId/13852/0 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: text/plain; charset=UTF-8 1 > Content-Length: 0 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate 19:20:47.563 response time in milliseconds: 146 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:44 GMT 1 < Content-Length: 1959 {"applicant":{"communicationId":25231,"email":"automation@svam.com","appId":13852,"emailContactTypeId":1,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":25234,"email":"sbandi@svam.com","appId":13852,"emailContactTypeId":2,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null}}
2350
Then status 200
0
2351
And def serverResponse = response
0
2352
* def applicantCommId = serverResponse.applicant.communicationId
0
2353
* def attorneyCommId = serverResponse.attorney.communicationId
0
2355
Given path '/internalapi/api/licensing/new-license/saveDecision'
0
2356
And header authorization = 'Bearer ' + strToken
0
2357
And header current-wfroleid = 5
0
2358
* def getSelectedDecisionFunc =
0
function(value1){ if (value1 == 'Approved'){ return 1; } else if (value1 == 'Disapproved'){ return 2; } else if (value1 == 'Disapproval to Counsel'){ return 3; }else if (value1 == 'Withdrawal'){ return 4; }else if (value1 == 'Conditionally Approved'){ return 5; }else if (value1 == 'FB Decision Required'){ return 6; }else if (value1 == 'Return to Examiner'){ return 7; } else { return 1; } }
2384
* def selectedDecisionCode = getSelectedDecisionFunc(approvalName)
0
2385
And print selectedDecisionCode
0
19:20:47.564 [print] 1
2386
And request {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":'#(appId)',"applicationType":1,"applicationId":'#(ApplicationId)',"legalName":'#(legalName)',"statusId":3,"decisionType":{"name":'#(approvalName)',"value":'#(selectedDecisionCode)'},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":'#(effectiveDate)',"expirationDate":'#(expirationDate)',"stipulations":[],"descriptions":[]}}
0
2388
When method post
286
19:20:47.565 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/new-license/saveDecision 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > current-wfroleid: 5 2 > Content-Type: application/json; charset=UTF-8 2 > Content-Length: 2479 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":13852,"applicationType":1,"applicationId":"NA-0111-22-119052","legalName":"Automation20221115192033Automation","statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":"2022-11-15","expirationDate":"2022-11-25T19:20:46.781Z","stipulations":[],"descriptions":[]}} 19:20:47.850 response time in milliseconds: 285 2 < 200 2 < Content-Length: 4 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:50:45 GMT true
2389
Then status 200
0
2390
And def serverResponse = response
0
2391
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
906
>>
karate.UseCases.LicensesCommonMethods
324
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
171
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
149
19:20:48.603 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13852 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:48.751 response time in milliseconds: 148 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:45 GMT 1 < Content-Length: 209 {"applicationId":"NA-0111-22-119052","submitDate":"2022-11-15T08:50:38.073","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Approved"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:20:48.752 [print] Approved
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
0
354
* call read('LicensesCommonMethods.feature@ValidateLicenseApplicationStatus') {LicAppStatus:'Approved'}
788
>>
karate.UseCases.LicensesCommonMethods
234
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1326
Given path 'internalapi/api/GenericSearch/SearchLicense'
0
1327
And header Content-Type = 'application/json; charset=utf-8'
0
1328
And header Accept = 'application/json; text/plain;*/*'
0
1329
And header authorization = 'Bearer ' + strToken
0
1330
And params {page:1,pageSize:10}
0
1331
And request [{"dataTypeValue":"Text","key":"ApplicationId","operatorValue":"=","value":'#(ApplicationId)'}]
0
1332
When method post
231
19:20:49.315 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/GenericSearch/SearchLicense?pageSize=10&page=1 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 96 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate [{"dataTypeValue":"Text","key":"ApplicationId","operatorValue":"=","value":"NA-0111-22-119052"}] 19:20:49.546 response time in milliseconds: 231 1 < 200 1 < Content-Length: 684 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:46 GMT {"data":[{"acaId":13852,"acaType":"application","applicationLicenseId":"0111-22-129119","legacySerialNo":null,"legalName":"Automation20221115192033Automation","dba":null,"licenseDescription":"Restaurant-Beer","expirationDate":"2022-11-25T00:00:00","examinerAssigned":"Tarun Gupta","premisesAddress":"Address1 Address2 New York New York New York 12345 1234 United States (US)","applicantAddress":"Address1 Address2 New York New York New York 12345 1234 United States (US)","feinSsn":"","formId":1165,"applicationId":"NA-0111-22-119052","licenseId":"0111-22-129119","wfRoleId":2,"applicationStatus":"Approved","licenseStatus":"Active"}],"total":1,"aggregateResults":null,"errors":null}
1333
Then status 200
0
1334
And print response
0
19:20:49.546 [print] { "data": [ { "acaId": 13852, "acaType": "application", "applicationLicenseId": "0111-22-129119", "legacySerialNo": null, "legalName": "Automation20221115192033Automation", "dba": null, "licenseDescription": "Restaurant-Beer", "expirationDate": "2022-11-25T00:00:00", "examinerAssigned": "Tarun Gupta", "premisesAddress": "Address1 Address2 New York New York New York 12345 1234 United States (US)", "applicantAddress": "Address1 Address2 New York New York New York 12345 1234 United States (US)", "feinSsn": "", "formId": 1165, "applicationId": "NA-0111-22-119052", "licenseId": "0111-22-129119", "wfRoleId": 2, "applicationStatus": "Approved", "licenseStatus": "Active" } ], "total": 1, "aggregateResults": null, "errors": null }
1335
* match response.data[0].applicationStatus == '#(LicAppStatus)'
1
356
* call read('LicensesCommonMethods.feature@GetLicenseId') {}
636
>>
karate.UseCases.LicensesCommonMethods
163
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
3212
Given path '/internalapi/api/licensing/LBDecision/getLicenseByAppId/' + appId +'/-1'
0
3213
And header authorization = 'Bearer ' + strToken
0
3214
* def EffectiveDate = EffDate()
0
3215
And request {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":'#(appId)',"applicationType":1,"applicationId":'#(ApplicationId)',"legalName":null,"statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":'#(EffectiveDate)',"expirationDate":'#(expiryDate)',"stipulations":[],"descriptions":[]}}
1
3216
When method get
156
19:20:50.020 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/LBDecision/getLicenseByAppId/13852/-1 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 2436 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":13852,"applicationType":1,"applicationId":"NA-0111-22-119052","legalName":null,"statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":"2022-11-15","expirationDate":"#(expiryDate)","stipulations":[],"descriptions":[]}} 19:20:50.173 response time in milliseconds: 153 1 < 200 1 < Content-Length: 2853 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:46 GMT {"license":{"licId":1468,"applicationId":null,"licenseId":"0111-22-129119","licensePermitId":null,"licePermitTypeId":40,"appId":13852,"legacySerialNo":null,"issueDate":null,"expiryDate":"2025-10-31T00:00:00","effectiveDate":"2022-11-15T00:00:00","seasonalStartDate":null,"seasonalEndDate":null,"safeKeepingExpiryDate":null,"status":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"extTempPermitEnabled":false,"application":{"applicationCategory":null,"appId":null,"applicationId":null,"licePermitTypeId":null,"applicationTypeId":null,"formVersionId":null,"formId":null,"legalName":null,"submitDate":null,"isGISRequired":null,"licenseDescription":null,"recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":null,"priority":null,"expirationDate":null,"appStatusId":null,"taskStatus":null,"taskId":null,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":null,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":null,"isNotQualified":null,"eventDate":null,"appStatus":{"appStatusId":0,"statusDescription":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":null,"assignAppToLB":null,"licePermitType":null,"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":0,"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isCaseOpenSameAddress":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"clericalName":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"isFairOrFestival":false,"isShowEffExpDateOnLBReview":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"options":null,"emailNotificationModel":null,"taskOptionsListNested":null,"days":0,"permit":null,"licPermitType":null,"licensePermitMapping":null,"licenseFee":null,"accountBalance":null,"licenseDescription":null,"isSeasonal":false,"isSummerSeasonal":false,"newExpiryDate":null,"amountDue":null,"originalLicenseFee":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"wfRoleId":0},"person":[],"totalRecord":0,"apps":[]}
3217
Then status 200
0
3218
And def serverResponse = response
0
3219
And print serverResponse
2
19:20:50.176 [print] { "license": { "licId": 1468, "applicationId": null, "licenseId": "0111-22-129119", "licensePermitId": null, "licePermitTypeId": 40, "appId": 13852, "legacySerialNo": null, "issueDate": null, "expiryDate": "2025-10-31T00:00:00", "effectiveDate": "2022-11-15T00:00:00", "seasonalStartDate": null, "seasonalEndDate": null, "safeKeepingExpiryDate": null, "status": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null, "extTempPermitEnabled": false, "application": { "applicationCategory": null, "appId": null, "applicationId": null, "licePermitTypeId": null, "applicationTypeId": null, "formVersionId": null, "formId": null, "legalName": null, "submitDate": null, "isGISRequired": null, "licenseDescription": null, "recommendedDecisionId": null, "status500": null, "isApplicableForPDLetter": false, "countyName": null, "priority": null, "expirationDate": null, "appStatusId": null, "taskStatus": null, "taskId": null, "currentWfstatus": null, "communityBoard": null, "isLicenseApplication": null, "currentDueDate": null, "isFinalDeficiency": null, "isHighlyDeficient": null, "isAllDeficienciesMet": null, "pastDueDate": null, "memo": null, "isOneTimePermit": null, "dueDateAction": null, "isDisapprovedForCause": null, "isNotQualified": null, "eventDate": null, "appStatus": { "appStatusId": 0, "statusDescription": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null }, "applicationType": null, "assignAppExaminer": null, "assignAppToLB": null, "licePermitType": null, "assoApplicationList": [ ], "isTempPermit": null, "isTempOrLiq": false, "licPermitTypeId": 0, "isAssociatedLicense": null, "effectiveDate": null, "assignedUserId": null, "amendmentTypeId": null, "amendmentType": null, "disapprovedDate": null, "condApprovedDate": null, "addressId": null, "isCaseOpen": null, "isClosed": null, "isCaseOpenSameAddress": null, "isSpecialEventPlusFour": null, "isSpecialEventInsideFiveBoroughs": null, "licStatus": null, "createdBy": null, "clericalName": null, "licenseId": null, "address": null, "isNybeApp": false, "isHearingCompleted": null, "does500FtHearingExist": null, "parentAppStatus": null, "premisesAppCount": 0, "statusDescription": null, "eventAddress": null, "isFairOrFestival": false, "isShowEffExpDateOnLBReview": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskRoleId": 0, "taskDecision": null, "isActive": null, "createdDate": null, "modifiedBy": null, "wfRoleId": 0, "modifiedDate": null }, "options": null, "emailNotificationModel": null, "taskOptionsListNested": null, "days": 0, "permit": null, "licPermitType": null, "licensePermitMapping": null, "licenseFee": null, "accountBalance": null, "licenseDescription": null, "isSeasonal": false, "isSummerSeasonal": false, "newExpiryDate": null, "amountDue": null, "originalLicenseFee": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskId": null, "taskRoleId": 0, "taskDecision": null, "wfRoleId": 0 }, "person": [ ], "totalRecord": 0, "apps": [ ] }
3220
And def licId = serverResponse.license.licId
0
3221
And def licenseId = serverResponse.license.licenseId
0
3222
And def ActEffDate = serverResponse.license.seasonalStartDate
0
3223
And def ActExpDate = serverResponse.license.expiryDate
0
3224
And print serverResponse
1
19:20:50.178 [print] { "license": { "licId": 1468, "applicationId": null, "licenseId": "0111-22-129119", "licensePermitId": null, "licePermitTypeId": 40, "appId": 13852, "legacySerialNo": null, "issueDate": null, "expiryDate": "2025-10-31T00:00:00", "effectiveDate": "2022-11-15T00:00:00", "seasonalStartDate": null, "seasonalEndDate": null, "safeKeepingExpiryDate": null, "status": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null, "extTempPermitEnabled": false, "application": { "applicationCategory": null, "appId": null, "applicationId": null, "licePermitTypeId": null, "applicationTypeId": null, "formVersionId": null, "formId": null, "legalName": null, "submitDate": null, "isGISRequired": null, "licenseDescription": null, "recommendedDecisionId": null, "status500": null, "isApplicableForPDLetter": false, "countyName": null, "priority": null, "expirationDate": null, "appStatusId": null, "taskStatus": null, "taskId": null, "currentWfstatus": null, "communityBoard": null, "isLicenseApplication": null, "currentDueDate": null, "isFinalDeficiency": null, "isHighlyDeficient": null, "isAllDeficienciesMet": null, "pastDueDate": null, "memo": null, "isOneTimePermit": null, "dueDateAction": null, "isDisapprovedForCause": null, "isNotQualified": null, "eventDate": null, "appStatus": { "appStatusId": 0, "statusDescription": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null }, "applicationType": null, "assignAppExaminer": null, "assignAppToLB": null, "licePermitType": null, "assoApplicationList": [ ], "isTempPermit": null, "isTempOrLiq": false, "licPermitTypeId": 0, "isAssociatedLicense": null, "effectiveDate": null, "assignedUserId": null, "amendmentTypeId": null, "amendmentType": null, "disapprovedDate": null, "condApprovedDate": null, "addressId": null, "isCaseOpen": null, "isClosed": null, "isCaseOpenSameAddress": null, "isSpecialEventPlusFour": null, "isSpecialEventInsideFiveBoroughs": null, "licStatus": null, "createdBy": null, "clericalName": null, "licenseId": null, "address": null, "isNybeApp": false, "isHearingCompleted": null, "does500FtHearingExist": null, "parentAppStatus": null, "premisesAppCount": 0, "statusDescription": null, "eventAddress": null, "isFairOrFestival": false, "isShowEffExpDateOnLBReview": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskRoleId": 0, "taskDecision": null, "isActive": null, "createdDate": null, "modifiedBy": null, "wfRoleId": 0, "modifiedDate": null }, "options": null, "emailNotificationModel": null, "taskOptionsListNested": null, "days": 0, "permit": null, "licPermitType": null, "licensePermitMapping": null, "licenseFee": null, "accountBalance": null, "licenseDescription": null, "isSeasonal": false, "isSummerSeasonal": false, "newExpiryDate": null, "amountDue": null, "originalLicenseFee": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskId": null, "taskRoleId": 0, "taskDecision": null, "wfRoleId": 0 }, "person": [ ], "totalRecord": 0, "apps": [ ] }
3225
And print 'licId : ' , licId
0
19:20:50.178 [print] licId : 1468
3226
And print 'licenseId : ' , licenseId
0
19:20:50.178 [print] licenseId : 0111-22-129119
3227
And match licId != []
0
3228
And match licenseId != []
0
357
And print licenseId
0
19:20:50.184 [print] 0111-22-129119
358
* def notQualifiedApplication = false
0
359
* def notQlfdAppMessage = ''
0
360
* call read('RenewalCommonMethods.feature@IntakeRenewalLicense') {}
3225
>>
karate.UseCases.RenewalCommonMethods
2620
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
1
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
1
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
169
Given path '/internalapi/api/licensing/search/searchLicensesAndPermits/'
0
170
And header Content-Type = 'application/json; charset=utf-8'
0
172
And header Accept = 'application/json; text/plain;*/*'
0
173
And header authorization = 'Bearer ' + strToken
0
176
And request {"WfTaskIdList":[],"LicenseStatusList":[19,45,40],"ShowLicensesAndPermits":true,"Status":null,"isTempPermit":null,"ApplicationId":null,"LicensePermitId":'#(licenseId)',"LegalName":null,"FEIN":null,"applyFor":""}
0
177
When method POST
174
19:20:50.792 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/search/searchLicensesAndPermits 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 213 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"WfTaskIdList":[],"LicenseStatusList":[19,45,40],"ShowLicensesAndPermits":true,"Status":null,"isTempPermit":null,"ApplicationId":null,"LicensePermitId":"0111-22-129119","LegalName":null,"FEIN":null,"applyFor":""} 19:20:50.964 response time in milliseconds: 172 1 < 200 1 < Content-Length: 1292 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:48 GMT {"licenses":[{"lpId":1468,"licensePermitId":"0111-22-129119","licPermitTypeId":40,"isAccociatedLicense":false,"appId":13852,"mainAppId":13852,"status":"Active","legacySerialNo":null,"isLicense":true,"isPermit":null,"issueDate":"2022-11-15T00:00:00","expiryDate":"2022-11-25T00:00:00","effectiveDate":"2022-11-15T00:00:00","safeKeepingExpiryDate":null,"licensePermitStatusId":19,"combinedCraftId":null,"masterFileId":null,"isApplicableForTransfer":null,"surrenderDate":null,"isActive":true,"createdDate":"2022-11-15T08:50:45.047","modifiedDate":null,"submitDate":"2022-11-15T08:50:38.073","description":"Restaurant-Beer","county":"New York","legalName":"Automation20221115192033Automation","fein":"","formId":1165,"isRenewalRequird":true,"dba":null,"associatePermits":[],"provisions":[],"address":{"addressId":null,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":null,"county":"New York","zipCode":"12345","zip4":null,"street":null,"telephoneNumber":null,"country":null,"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":null,"serialNo":0,"addressType":null,"state":null},"mfCCId":null}],"totalRecord":1}
178
Then status 200
0
179
* def licPermitTypeId = response.licenses[0].licPermitTypeId
0
180
* def lpId = response.licenses[0].lpId
0
181
* def effectiveDate = response.licenses[0].effectiveDate
0
182
* def expiryDate = response.licenses[0].expiryDate
0
183
* def legalName = response.licenses[0].legalName
0
184
* def licAppId = response.licenses[0].appId
0
185
* def submitDate = response.licenses[0].submitDate
0
186
* call read('LicensesCommonMethods.feature@GetCountyList') {}
2057
>>
karate.UseCases.LicensesCommonMethods
684
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
117
Given path '/internalapi/api/reference'
0
118
* def dbSts = db.cleanHeap()
532
119
And header authorization = 'Bearer ' + strToken
0
120
And header Content-Type = 'application/json;charset=utf-8'
0
121
And header Accept = 'text/plain'
0
# * def query = {name:countyzone&onlyActives:true}
123
And params {name:countyzone,onlyActives:true}
0
#And param onlyActives='true'
125
And request {}
0
126
When method get
149
19:20:52.866 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/reference?name=countyzone&onlyActives=true 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json;charset=utf-8 1 > Accept: text/plain 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:53.013 response time in milliseconds: 146 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:50 GMT 1 < Content-Length: 11712 {"values":[{"CountyId":1,"County":"New York","ShortName":"NEW","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T00:00:00","ModifiedBy":"esandoval","ModifiedDate":"2020-11-10T11:30:56.047"},{"CountyId":2,"County":"Kings","ShortName":"KING","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":3,"County":"Bronx","ShortName":"BRON","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":4,"County":"Queens","ShortName":"QUEE","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":5,"County":"Richmond","ShortName":"RICH","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":6,"County":"Nassau","ShortName":"NASS","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":7,"County":"Suffolk","ShortName":"SUFF","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":8,"County":"Westchester","ShortName":"WEST","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":9,"County":"Orange","ShortName":"ORAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":10,"County":"Putnam","ShortName":"PUTN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":11,"County":"Rockland","ShortName":"ROCK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":12,"County":"Albany","ShortName":"ALBA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":13,"County":"Clinton","ShortName":"CLIN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":14,"County":"Columbia","ShortName":"COLU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":15,"County":"Dutchess","ShortName":"DUTC","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":16,"County":"Essex","ShortName":"ESSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":17,"County":"Franklin","ShortName":"FRAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":18,"County":"Fulton","ShortName":"FULT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":19,"County":"Greene","ShortName":"GREE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":20,"County":"Hamilton","ShortName":"HAMI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":21,"County":"Montgomery","ShortName":"MONT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":22,"County":"Rensselaer","ShortName":"RENS","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":23,"County":"Saratoga","ShortName":"SARA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":24,"County":"Schenectady","ShortName":"SCHE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":25,"County":"Schoharie","ShortName":"SCHO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":26,"County":"Sullivan","ShortName":"SULL","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":27,"County":"Ulster","ShortName":"ULST","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":28,"County":"Warren","ShortName":"WARR","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":29,"County":"Washington","ShortName":"WASH","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":30,"County":"Allegany","ShortName":"ALLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":31,"County":"Cattaraugus","ShortName":"CATT","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":32,"County":"Chautauqua","ShortName":"CHAU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":33,"County":"Chemung","ShortName":"CHEM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":34,"County":"Erie","ShortName":"ERIE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":35,"County":"Genesee","ShortName":"GENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":36,"County":"Livingston","ShortName":"LIVI","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":37,"County":"Monroe","ShortName":"MONR","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":38,"County":"Niagara","ShortName":"NIAG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":39,"County":"Ontario","ShortName":"ONTA","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":40,"County":"Orleans","ShortName":"ORLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":41,"County":"Schuyler","ShortName":"SCHU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":42,"County":"Seneca","ShortName":"SENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":43,"County":"Steuben","ShortName":"STEU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":44,"County":"Wayne","ShortName":"WAYN","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":45,"County":"Wyoming","ShortName":"WYOM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":46,"County":"Yates","ShortName":"YATE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":47,"County":"Broome","ShortName":"BROO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":48,"County":"Chenango","ShortName":"CHEN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":49,"County":"Cortland","ShortName":"CORT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":50,"County":"Delaware","ShortName":"DELA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":51,"County":"Herkimer","ShortName":"HERK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":52,"County":"Jefferson","ShortName":"JEFF","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":53,"County":"Lewis","ShortName":"LEWI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":54,"County":"Madison","ShortName":"MADI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":55,"County":"Oneida","ShortName":"ONEI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":56,"County":"Onondaga","ShortName":"ONON","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":57,"County":"Oswego","ShortName":"OSWE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":58,"County":"Otsego","ShortName":"OTSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":59,"County":"St. Lawrence","ShortName":"ST L","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":60,"County":"Cayuga","ShortName":"CAYU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":61,"County":"Tioga","ShortName":"TIOG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":62,"County":"Tompkins","ShortName":"TOMP","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.6","ModifiedBy":null,"ModifiedDate":null}],"name":"countyzone","schema":[{"columnName":"CountyId","dataType":"int","maxLenght":null,"isRequired":true},{"columnName":"County","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ShortName","dataType":"nvarchar","maxLenght":10,"isRequired":false},{"columnName":"ZoneNo","dataType":"int","maxLenght":null,"isRequired":false},{"columnName":"IsActive","dataType":"bit","maxLenght":null,"isRequired":false},{"columnName":"CreatedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"CreatedDate","dataType":"datetime","maxLenght":null,"isRequired":false},{"columnName":"ModifiedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ModifiedDate","dataType":"datetime","maxLenght":null,"isRequired":false}]}
127
* configure continueOnStepFailure = true
0
128
Then status 200
0
129
And def values = response.values
0
130
* configure continueOnStepFailure = true
0
187
* def countyData = karate.jsonPath(values, "$[?(@.CountyId == '" + CountyId + "')]")
1
188
* def countyZone = countyData[0].ZoneNo
0
189
And print countyZone
0
19:20:53.025 [print] 1
190
Given path '/internalapi/api/licensing/renewal/save'
0
191
* def dbSts = db.cleanHeap()
219
192
And header authorization = 'Bearer ' + strToken
0
193
And header Content-Type = 'application/json; charset=utf-8'
0
194
And header Accept = 'application/json; text/plain;*/*'
0
195
And configure continueOnStepFailure = true
0
196
And request {"mainLicenseId":'#(licenseId)',"associated":[],"notQualifiedApplication":'#(notQualifiedApplication)',"NotQualifiedComments":'#(notQlfdAppMessage)'}
0
197
When method Post
160
19:20:53.244 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/renewal/save 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > Content-Length: 108 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"mainLicenseId":"0111-22-129119","associated":[],"notQualifiedApplication":false,"NotQualifiedComments":""} 19:20:53.404 response time in milliseconds: 160 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:50:50 GMT 2 < Content-Length: 170 [{"appId":13853,"formId":1167,"childAppId":null,"mainApplicationId":"RE-22-106363-01","childApplicationId":null,"licensePermitTypeId":40,"description":"Restaurant-Beer"}]
198
* configure continueOnStepFailure = true
0
199
Then status 200
0
200
* def description = response[0].description
0
201
* def appId = response[0].appId
0
202
* def formId = response[0].formId
0
203
* def ApplicationId = response[0].mainApplicationId
0
204
And print ApplicationId
0
19:20:53.405 [print] RE-22-106363-01
205
And match ApplicationId contains 'RE-'
0
207
* def currentYear = '-'+getYearFunc()+'-'
1
208
And match ApplicationId contains currentYear
0
361
* call read('RenewalCommonMethods.feature@SaveAssociatedPrincipal') {}
634
>>
karate.UseCases.RenewalCommonMethods
336
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
1
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
464
Given path '/internalapi/api/licensing/app/static/principal/'+appId
0
466
And header Content-Type = 'application/json; charset=utf-8'
0
467
And header Accept = 'application/json; text/plain;*/*'
0
468
And header authorization = 'Bearer ' + strToken
0
469
And request {}
0
470
When method get
153
19:20:53.709 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/13853 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:53.862 response time in milliseconds: 153 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:50 GMT 1 < Content-Length: 1388 {"entities":[],"principals":[{"principalId":3275,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":true,"isFingerprintsApproved":true,"percentageOfOwners":20.0,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","entities":null,"numberOfShares":"","isSignature":false,"isRemove":false,"date":"2022-11-15T00:00:00","convictedOfCrime":"1","title":"15","isLicensed":true,"isAssociated":true,"person":{"personId":5566,"firstName":"Automation20221115192034","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T00:00:00","serialNo":0,"age":0,"choosedEntity":[]},"address":{"addressId":29321,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25233,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
471
Then status 200
0
472
* def personResponse = response
0
473
* def principalId = personResponse.principals[0].principalId
0
474
* def personId = personResponse.principals[0].person.personId
0
475
* def licFirstName = personResponse.principals[0].person.firstName
0
476
* def licLastName = personResponse.principals[0].person.lastName
0
477
* def licCommID = personResponse.principals[0].communication.id
0
478
* def licEmailID = personResponse.principals[0].communication.email
0
479
* def licAddressId = personResponse.principals[0].address.addressId
0
480
Given path '/internalapi/api/licensing/app/static/principal/save/'+appId
0
482
And header Content-Type = 'application/json; charset=utf-8'
0
483
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
492
* def prncipalName = 'AutoRenewal'+getDate1()
1
494
And header Accept = 'application/json; text/plain;*/*'
0
495
And header authorization = 'Bearer ' + strToken
0
498
And request {"entities":[],"principals":[{"principalId":'#(principalId)',"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":true,\"isNewPrincipal\":false}","entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":'#(personId)',"firstName":'#(licFirstName)',"middleName":"","lastName":'#(licLastName)',"suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":null},"address":{"addressId":'#(licAddressId)',"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":'#(licCommID)',"email":'#(licEmailID)',"confirmEmail":'#(licEmailID)',"phones":[]}},{"principalId":0,"convictedOfCrime":"","percentageOfOwners":"","isFingerprintRequired":"","isFingerprintsApproved":"","title":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"Test Address1","addressLine2":"","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":'#(licEmailID)',"confirmEmail":'#(licEmailID)'},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
0
499
When method post
178
19:20:53.864 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/save/13853 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 2220 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"entities":[],"principals":[{"principalId":3275,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":true,\"isNewPrincipal\":false}","entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":5566,"firstName":"Automation20221115192034","middleName":"","lastName":"AutoLastName","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":null},"address":{"addressId":29321,"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25233,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}},{"principalId":0,"convictedOfCrime":"","percentageOfOwners":"","isFingerprintRequired":"","isFingerprintsApproved":"","title":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"Test Address1","addressLine2":"","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":"automation@svam.com","confirmEmail":"automation@svam.com"},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]} 19:20:54.040 response time in milliseconds: 176 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:50:51 GMT 2 < Content-Length: 2326 {"entities":[],"principals":[{"principalId":3275,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":null,"entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":5566,"firstName":"Automation20221115192034","middleName":"","lastName":"AutoLastName","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":[]},"address":{"addressId":29321,"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25233,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}},{"principalId":3276,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":null,"entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":[]},"address":{"addressId":0,"appId":null,"addressLine1":"Test Address1","addressLine2":"","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":0,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
500
Then status 200
0
362
* call read('RenewalCommonMethods.feature@Fee_Check') {}
640
>>
karate.UseCases.RenewalCommonMethods
311
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
1
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
504
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
505
* def totalFees = licenseFees + fillingFees
0
506
And print totalFees
0
19:20:54.373 [print] 1060.0
507
And header Content-Type = 'application/json; charset=utf-8'
0
508
And header Accept = 'application/json; text/plain;*/*'
0
509
And header authorization = 'Bearer ' + strToken
0
510
And request {}
0
511
When method get
308
19:20:54.373 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13853 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:54.681 response time in milliseconds: 308 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:51 GMT 1 < Content-Length: 655 [{"licenseName":"Restaurant - Beer","applicationId":"RE-22-106363-01","applicationTypeId":2,"appFeesId":0,"appId":13853,"feesRefId":6042,"initialFees":0.0,"licensingFees":480.00,"amendmentFees":0.0,"renewalFees":30.00,"totalFees":0.0,"filingFees":0.0,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
512
Then status 200
0
513
And def serverResponse = response
0
514
* def licTerm = serverResponse[0].term
0
515
* def licFees = serverResponse[0].licensingFees+''
0
516
* def licTermDesc = serverResponse[0].termDesc
0
517
* def licFeesRefId = serverResponse[0].feesRefId
0
519
* def licAncillaryFees = serverResponse[0].ancillaryFees+''
0
520
* def licfilingFees = serverResponse[0].filingFees+''
0
521
* def licInitialFees = serverResponse[0].initialFees
0
522
* def licRenewalFees = serverResponse[0].renewalFees
0
363
* match licRenewalFees == 30
0
364
* call read('RenewalCommonMethods.feature@BondValidation') {}
1095
>>
karate.UseCases.RenewalCommonMethods
792
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
1
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
1825
* def futureDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
1835
* def futureDate = futureDateFunc()
1
1837
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1847
* def date = getDate2()
0
1849
Given path '/internalapi/api/licensing/fees/bond/bond-info/get/'+appId
0
1850
And header Content-Type = 'application/json; charset=utf-8'
0
1851
And header Accept = 'application/json; text/plain;*/*'
0
1852
And header authorization = 'Bearer ' + strToken
0
1853
And request {}
0
1854
When method get
173
19:20:54.988 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/bond/bond-info/get/13853 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:55.161 response time in milliseconds: 172 1 < 200 1 < Content-Length: 311 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:52 GMT [{"bondId":0,"bondNo":null,"amount":1000.0000,"claimDate":null,"claimedAmt":null,"companyName":null,"emailAddress":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"appId":13853,"expirationDate":null,"address":null,"city":null,"state":null,"zip":null,"phone":null}]
1855
Then status 200
0
1857
* match response[0]amount != []
0
1859
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
1860
And header Content-Type = 'application/json; charset=utf-8'
0
1861
And header Accept = 'application/json; text/plain;*/*'
0
1862
And header authorization = 'Bearer ' + strToken
0
1863
And request {}
0
1864
When method get
318
19:20:55.162 request: 2 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13853 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 2 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {} 19:20:55.479 response time in milliseconds: 317 2 < 200 2 < Content-Length: 655 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:50:52 GMT [{"licenseName":"Restaurant - Beer","applicationId":"RE-22-106363-01","applicationTypeId":2,"appFeesId":0,"appId":13853,"feesRefId":6042,"initialFees":0.0,"licensingFees":480.00,"amendmentFees":0.0,"renewalFees":30.00,"totalFees":0.0,"filingFees":0.0,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
1865
Then status 200
0
1866
And def serverResponse = response
0
1867
* def licTerm = serverResponse[0].term
0
1868
* def licFees = serverResponse[0].licensingFees+''
0
1869
* def licTermDesc = serverResponse[0].termDesc
0
1870
* def licFeesRefId = serverResponse[0].feesRefId
0
1871
* def licAncillaryFees = serverResponse[0].ancillaryFees+''
0
1872
* def licfilingFees = serverResponse[0].filingFees+''
0
1873
* def licInitialFees = serverResponse[0].initialFees
1
1874
* def bndFees = serverResponse[0].bondFee
0
1875
* def isBondRequired = serverResponse[0].isBondRequired
0
1876
And def totalFees = serverResponse[0].licensingFees+serverResponse[0].filingFees
0
1877
And print totalFees
0
19:20:55.481 [print] 480.0
1879
* def companyName = "ACSTAR INSURANCE COMPANY"
0
1881
Given path 'internalapi/api/licensing/fees/bond/company/'+companyName
0
1883
And header Content-Type = 'application/json; charset=utf-8'
0
1884
And header Accept = 'application/json; text/plain;*/*'
0
1885
And header authorization = 'Bearer ' + strToken
0
1886
And request {}
0
1887
When method get
145
19:20:55.482 request: 3 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/bond/company/ACSTAR%20INSURANCE%20COMPANY 3 > Content-Type: application/json; charset=utf-8 3 > Accept: application/json; text/plain;*/* 3 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 3 > Content-Length: 2 3 > Host: slaleapqaapi.svam.com 3 > Connection: Keep-Alive 3 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 3 > Accept-Encoding: gzip,deflate {} 19:20:55.626 response time in milliseconds: 144 3 < 200 3 < Content-Type: application/json; charset=utf-8 3 < Server: Microsoft-IIS/10.0 3 < Strict-Transport-Security: max-age=2592000 3 < X-Powered-By: ASP.NET 3 < Date: Tue, 15 Nov 2022 13:50:52 GMT 3 < Content-Length: 401 {"bondCompanyId":1,"companyName":"ACSTAR INSURANCE COMPANY","address":"P O BOX 2350 ","city":"NEW BRITAIN ","state":"CT","zip":"06050","phone":"123","isActive":null,"createdBy":"esandoval","createdDate":"2019-11-27T00:00:00","modifiedBy":"esandoval@SVAM.COM","modifiedDate":null,"companyName2":null,"address2":"233 MAIN STREET ","email":"email@email.com"}
1888
Then status 200
0
1889
And print response
0
19:20:55.626 [print] { "bondCompanyId": 1, "companyName": "ACSTAR INSURANCE COMPANY", "address": "P O BOX 2350 ", "city": "NEW BRITAIN ", "state": "CT", "zip": "06050", "phone": "123", "isActive": null, "createdBy": "esandoval", "createdDate": "2019-11-27T00:00:00", "modifiedBy": "esandoval@SVAM.COM", "modifiedDate": null, "companyName2": null, "address2": "233 MAIN STREET ", "email": "email@email.com" }
1890
And def address = response.address
0
1891
And def address2 = response.address2
0
1892
And def bondCompanyId = response.bondCompanyId
0
1893
And def city = response.city
0
1894
And def companyName = response.companyName
0
1895
And def email = response.email
0
1896
And def phone = response.phone
0
1897
And def state = response.state
0
1898
And def zip = response.zip
0
1900
Given path 'internalapi/api/notification/SaveNotification'
0
1902
And header Accept = 'application/json; text/plain;*/*'
0
1903
And header authorization = 'Bearer ' + strToken
0
1905
And request {"applicant":{"communicationId":0,"email":null,"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}
0
1907
When method post
148
19:20:55.627 request: 4 > POST https://slaleapqaapi.svam.com/internalapi/api/notification/SaveNotification 4 > Accept: application/json; text/plain;*/* 4 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 4 > Content-Type: application/json; charset=UTF-8 4 > Content-Length: 1983 4 > Host: slaleapqaapi.svam.com 4 > Connection: Keep-Alive 4 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 4 > Accept-Encoding: gzip,deflate {"applicant":{"communicationId":0,"email":null,"appId":13853,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13853,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13853,"createdBy":"Tarun Gupta"} 19:20:55.774 response time in milliseconds: 147 4 < 200 4 < Content-Length: 5 4 < Content-Type: application/json; charset=utf-8 4 < Server: Microsoft-IIS/10.0 4 < Strict-Transport-Security: max-age=2592000 4 < X-Powered-By: ASP.NET 4 < Date: Tue, 15 Nov 2022 13:50:52 GMT false
1908
Then status 200
0
365
* call read('RenewalCommonMethods.feature@Draft_Status_Check') {}
431
>>
karate.UseCases.RenewalCommonMethods
151
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
0
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
529
Given path '/internalapi/api/application/isApplicationInDraft/'+appId
0
531
And header Content-Type = 'application/json; charset=utf-8'
0
532
And header Accept = 'application/json; text/plain;*/*'
0
533
And header authorization = 'Bearer ' + strToken
0
534
And request {}
0
535
When method get
149
19:20:56.061 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/isApplicationInDraft/13853 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:56.209 response time in milliseconds: 148 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:53 GMT 1 < Content-Length: 4 true
536
Then status 200
0
537
* match response == 'true'
0
Scenario: [3.1:451] TC006_SLA_REN_Intake_Fees_Apply_Payment_to_Single_Application
ms: 29741
>>
Background:
3
* url BaseURL
0
19:20:56.297 karate.env system property was: svamqa
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* callonce read('LoginDetails.feature') { strToken:'#(strToken)'}
36
8
* def amendmentTypeId = 1
0
9
* def waitFunc =
0
function(timeinMiliSeconds) { // load java type into js engine var Thread = Java.type('java.lang.Thread'); Thread.sleep(timeinMiliSeconds*1000); }
17
* def DueDate =
0
function(numberOfDays){ var date = new Date(); date.setDate(date.getDate() + (numberOfDays)); return date.toString() }
25
* def DueDateCheck = DueDate(7)
1
27
* def getcorporateStructureCodeFunc =
0
function(value){ if (value === 'Individual'){ return 1; } else { return 2; } }
38
* def getStatusIndOrgStatus =
0
function(value){ if (value === 'Individual'){ return true; } else { return false; } }
49
* def getIndORgCodeFunc =
0
function(value1, value2){ if (value1 == 1 && value2 == 'Individual'){ return 1; } else if (value1 == 1 && value2 == 'Sole Propretior'){ return 2; } else if (value1 == 2 && value2 == 'Individual'){ return 1; } else if (value1 == 2 && value2 == 'Limited Liability Company'){ return 2; }else if (value1 == 2 && value2 == 'Corporation'){ return 3; }else if (value1 == 2 && value2 == 'Limited Liability Partnership'){ return 4; }else if (value1 == 2 && value2 == 'Limited Partnership'){ return 5; }else if (value1 == 2 && value2 == 'Partnership'){ return 6; }else if (value1 == 2 && value2 == 'Government'){ return 7; }else if (value1 == 2 && value2 == 'Sole Propretior'){ return 8; }else if (value1 == 2 && value2 == 'Trust'){ return 9; }else if (value1 == 2 && value2 == 'Estate'){ return 10; } else { return 1; } }
87
* def getFundDueDateMMYYDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
99
* def mmyydateFundDueDate = getFundDueDateMMYYDate(7)
1
100
And print mmyydateFundDueDate
0
19:20:56.335 [print] 11/22/2022
102
* def getAmendmentTypeIdFunc =
0
function(amendmentType){ if (amendmentType == 'ABC Officer'){ return 1; } else if (amendmentType == 'Additional Bar'){ return 2; } else if (amendmentType == 'Alteration'){ return 3; } else if (amendmentType == 'Alteration with Additional Bar'){ return 3; } }
121
* def waitFunc =
0
function(timeinMiliSeconds) { // load java type into js engine var Thread = Java.type('java.lang.Thread'); Thread.sleep(timeinMiliSeconds*1000); }
129
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
140
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
151
* def getMMMMDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MMMM dd, yyyy"); var date = new java.util.Date(); return sdf.format(date); }
161
* def mmmmdate = getMMMMDate()
0
163
* def getMMYYDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); return sdf.format(date); }
173
* def mmyydate = getMMYYDate()
0
175
* def getFundDueDateMMYYDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
187
* def mmyydateFundDueDate = getFundDueDateMMYYDate(7)
1
189
* def dateFnc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date( date.getTime() - java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
199
* def dateWithMonthsNameFnc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MMMM dd, yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date( date.getTime()); return sdf.format(dayAfter); }
208
* def dateWithMonthsName = dateWithMonthsNameFnc()
1
209
And print dateWithMonthsName
0
19:20:56.338 [print] November 15, 2022
378
* def IndOrgSelectionDropDown = 'Individual'
0
379
* def indOrgCode = getIndORgCodeFunc(IndOrgSelectionDropDown)
1
380
And print indOrgCode
0
19:20:56.339 [print] 1
381
* def isIndStatus = getStatusIndOrgStatus(IndOrgSelectionDropDown)
0
382
* def CorporateStructureDropDown = 'Individual'
0
383
* def CorporateStructureDropDownCode = getIndORgCodeFunc(indOrgCode,CorporateStructureDropDown)
0
384
And print CorporateStructureDropDownCode
0
19:20:56.341 [print] 1
385
* def firstName = 'Automation'
0
386
* def lastName = 'Automation'
0
387
* def legalName = firstName+ ' '+lastName
0
388
* def Address1 = 'Address1'
0
389
* def Address2 = 'Address2'
0
390
* def CityName = 'New York'
0
391
* def zipCode = '12345'
0
392
* def postalCode = '1234'
0
393
* def countryName = 'United States (US)'
0
394
* def emailId = 'automation@svam.com'
0
395
* def convictedOfCrime = '1'
0
396
* def percentageOfOwners = '20'
0
397
* def isFingerprintRequired = true
0
398
* def isFingerprintsApproved = true
0
399
* def isSignature = true
0
401
* def convictedOfCrime = '1'
0
402
* def PhoneNumber = '999-999-9999'
0
403
* def PhoneExtn = 1234
0
404
* def countryCode = '+91'
0
405
* def stateCode = 40
0
407
* def mainLicensePermitTypeId = 40
0
408
* def termInYears = 3
0
409
* def termDesc = 3+' Year (s)'
0
410
* def licenseFees = 960
0
411
* def fillingFees = 100
0
412
* def licAncillaryFees = 0
0
413
* def renewalFees = 30+''
0
414
* string productName = 'RestaurantBeer'+''
0
416
* def CountyId = 1
0
417
* def CountyName = 'New York'
0
418
* def totalFees = licenseFees+fillingFees+licAncillaryFees
0
419
* def splittedCityName = CityName.replaceAll(" ","")
0
421
* call read('LicensesCommonMethods.feature@IntakeLicensewithoutAssociatedLic') {}
2879
>>
karate.UseCases.LicensesCommonMethods
2305
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* App Intake *********************
290
* call read('LicensesCommonMethods.feature@GetCountyList') {}
1647
>>
karate.UseCases.LicensesCommonMethods
487
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
3
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
117
Given path '/internalapi/api/reference'
0
118
* def dbSts = db.cleanHeap()
311
119
And header authorization = 'Bearer ' + strToken
0
120
And header Content-Type = 'application/json;charset=utf-8'
0
121
And header Accept = 'text/plain'
0
# * def query = {name:countyzone&onlyActives:true}
123
And params {name:countyzone,onlyActives:true}
0
#And param onlyActives='true'
125
And request {}
0
126
When method get
169
19:20:58.361 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/reference?name=countyzone&onlyActives=true 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json;charset=utf-8 1 > Accept: text/plain 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:20:58.527 response time in milliseconds: 165 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:55 GMT 1 < Content-Length: 11712 {"values":[{"CountyId":1,"County":"New York","ShortName":"NEW","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T00:00:00","ModifiedBy":"esandoval","ModifiedDate":"2020-11-10T11:30:56.047"},{"CountyId":2,"County":"Kings","ShortName":"KING","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":3,"County":"Bronx","ShortName":"BRON","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":4,"County":"Queens","ShortName":"QUEE","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":5,"County":"Richmond","ShortName":"RICH","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":6,"County":"Nassau","ShortName":"NASS","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":7,"County":"Suffolk","ShortName":"SUFF","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":8,"County":"Westchester","ShortName":"WEST","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":9,"County":"Orange","ShortName":"ORAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":10,"County":"Putnam","ShortName":"PUTN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":11,"County":"Rockland","ShortName":"ROCK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":12,"County":"Albany","ShortName":"ALBA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":13,"County":"Clinton","ShortName":"CLIN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":14,"County":"Columbia","ShortName":"COLU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":15,"County":"Dutchess","ShortName":"DUTC","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":16,"County":"Essex","ShortName":"ESSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":17,"County":"Franklin","ShortName":"FRAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":18,"County":"Fulton","ShortName":"FULT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":19,"County":"Greene","ShortName":"GREE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":20,"County":"Hamilton","ShortName":"HAMI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":21,"County":"Montgomery","ShortName":"MONT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":22,"County":"Rensselaer","ShortName":"RENS","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":23,"County":"Saratoga","ShortName":"SARA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":24,"County":"Schenectady","ShortName":"SCHE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":25,"County":"Schoharie","ShortName":"SCHO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":26,"County":"Sullivan","ShortName":"SULL","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":27,"County":"Ulster","ShortName":"ULST","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":28,"County":"Warren","ShortName":"WARR","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":29,"County":"Washington","ShortName":"WASH","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":30,"County":"Allegany","ShortName":"ALLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":31,"County":"Cattaraugus","ShortName":"CATT","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":32,"County":"Chautauqua","ShortName":"CHAU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":33,"County":"Chemung","ShortName":"CHEM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":34,"County":"Erie","ShortName":"ERIE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":35,"County":"Genesee","ShortName":"GENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":36,"County":"Livingston","ShortName":"LIVI","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":37,"County":"Monroe","ShortName":"MONR","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":38,"County":"Niagara","ShortName":"NIAG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":39,"County":"Ontario","ShortName":"ONTA","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":40,"County":"Orleans","ShortName":"ORLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":41,"County":"Schuyler","ShortName":"SCHU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":42,"County":"Seneca","ShortName":"SENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":43,"County":"Steuben","ShortName":"STEU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":44,"County":"Wayne","ShortName":"WAYN","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":45,"County":"Wyoming","ShortName":"WYOM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":46,"County":"Yates","ShortName":"YATE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":47,"County":"Broome","ShortName":"BROO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":48,"County":"Chenango","ShortName":"CHEN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":49,"County":"Cortland","ShortName":"CORT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":50,"County":"Delaware","ShortName":"DELA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":51,"County":"Herkimer","ShortName":"HERK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":52,"County":"Jefferson","ShortName":"JEFF","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":53,"County":"Lewis","ShortName":"LEWI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":54,"County":"Madison","ShortName":"MADI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":55,"County":"Oneida","ShortName":"ONEI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":56,"County":"Onondaga","ShortName":"ONON","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":57,"County":"Oswego","ShortName":"OSWE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":58,"County":"Otsego","ShortName":"OTSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":59,"County":"St. Lawrence","ShortName":"ST L","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":60,"County":"Cayuga","ShortName":"CAYU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":61,"County":"Tioga","ShortName":"TIOG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":62,"County":"Tompkins","ShortName":"TOMP","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.6","ModifiedBy":null,"ModifiedDate":null}],"name":"countyzone","schema":[{"columnName":"CountyId","dataType":"int","maxLenght":null,"isRequired":true},{"columnName":"County","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ShortName","dataType":"nvarchar","maxLenght":10,"isRequired":false},{"columnName":"ZoneNo","dataType":"int","maxLenght":null,"isRequired":false},{"columnName":"IsActive","dataType":"bit","maxLenght":null,"isRequired":false},{"columnName":"CreatedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"CreatedDate","dataType":"datetime","maxLenght":null,"isRequired":false},{"columnName":"ModifiedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ModifiedDate","dataType":"datetime","maxLenght":null,"isRequired":false}]}
127
* configure continueOnStepFailure = true
0
128
Then status 200
0
129
And def values = response.values
0
130
* configure continueOnStepFailure = true
0
291
* def countyData = karate.jsonPath(values, "$[?(@.CountyId == '" + CountyId + "')]")
0
292
* def countyZone = countyData[0].ZoneNo
0
293
And print countyZone
0
19:20:58.551 [print] 1
294
Given path '/internalapi/api/licensing/selectapptype/savenewlicenseapp'
0
295
* def dbSts = db.cleanHeap()
198
296
And header authorization = 'Bearer ' + strToken
0
297
And header Content-Type = 'application/json; charset=utf-8'
0
298
And header Accept = 'application/json; text/plain;*/*'
0
#* def CountysId = <countyIds>
# And print CountysId
#* string CountysName = <countynames>
# And print CountysName
#* def mainLicensePermitTypeId = <LicensePermitTypeId>
# And print mainLicensePermitTypeId
#* string ProductType = <ProductTypes>
#* string LicenseDescription = <LicDescription>
# And print ProductType
309
And request {"mainLicensePermitTypeId":'#(mainLicensePermitTypeId)',"newPermitTypeIds":[],"combinedCraftId":null,"masterFileId":null,"isApplicableForTempPermit":false,"isNotQualified":false,"isChainRestaurant":false,"addBarList":[],"countyId":'#(CountyId)',"isApplicantCurrentLicensed":false,"isExistingManufacturer":false,"selectedLicense":null,"isAssociatedTempPermit":false}
0
311
When method post
155
19:20:58.749 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/selectapptype/savenewlicenseapp 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 327 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"mainLicensePermitTypeId":40,"newPermitTypeIds":[],"combinedCraftId":null,"masterFileId":null,"isApplicableForTempPermit":false,"isNotQualified":false,"isChainRestaurant":false,"addBarList":[],"countyId":1,"isApplicantCurrentLicensed":false,"isExistingManufacturer":false,"selectedLicense":null,"isAssociatedTempPermit":false} 19:20:58.904 response time in milliseconds: 155 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:55 GMT 1 < Content-Length: 234 [{"childAppId":null,"mainApplicationId":"NA-0111-22-119053","childApplicationId":null,"licensePermitTypeId":40,"description":"Restaurant-Beer","parentApplicationId":"NA-0111-22-119053","parentAppId":13854,"appId":13854,"formId":1165}]
312
* configure continueOnStepFailure = true
0
313
Then status 200
0
315
And def ApplicationId = response[0].mainApplicationId
0
316
And print ApplicationId
0
19:20:58.904 [print] NA-0111-22-119053
317
And match ApplicationId contains 'NA-'
0
319
* def currentYear = '-'+getYearFunc()+'-'+countyZone
0
320
And match ApplicationId contains currentYear
0
321
And def description = response[0].description
0
323
And def appId = response[0].appId
0
325
* def formId = response[0].formId
0
326
* def FormVersionId = response[0].FormVersionId
0
328
Given path '/internalapi/api/application/preview/'+appId
0
329
* def dbSts = db.cleanHeap()
123
330
And header authorization = 'Bearer ' + strToken
0
331
And header Content-Type = 'application/json; charset=utf-8'
0
332
And header Accept = 'application/json; text/plain;*/*'
0
333
And configure continueOnStepFailure = true
0
334
And request {}
0
335
When method get
178
19:20:59.029 request: 2 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13854 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > Content-Length: 2 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {} 19:20:59.206 response time in milliseconds: 177 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:50:55 GMT 2 < Content-Length: 185 {"applicationId":"NA-0111-22-119053","submitDate":null,"licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Draft"},"isLicenseApplication":true,"isPreFilled":false}
336
* configure continueOnStepFailure = true
0
337
Then status 200
0
338
And def licStatus = response.appStatus.statusDescription
0
339
And print licStatus
0
19:20:59.206 [print] Draft
340
And match licStatus == 'Draft'
0
422
* def CountyName = "New York"
0
423
* call read('LicensesCommonMethods.feature@FillAndSaveApplicantInformationPage') {county:'#(CountyName)'}
857
>>
karate.UseCases.LicensesCommonMethods
204
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
700
* def getDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
709
Given path '/internalapi/api/licensing/app/static/applicantinfo/save/'+appId
0
710
And header Content-Type = 'application/json; charset=utf-8'
0
712
* def autoFirstName = firstName + getDate()
0
713
* def legalName = autoFirstName + lastName
0
714
And header Accept = 'application/json; text/plain;*/*'
0
715
And header authorization = 'Bearer ' + strToken
0
716
And request {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":'#(indOrgCode)',"corporateStructure":'#(CorporateStructureDropDownCode)',"firstName":'#(autoFirstName)',"lastName":'#(lastName)',"middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":'#(legalName)',"id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":'#(IndOrgSelectionDropDown)',"corporateStructureText":'#(CorporateStructureDropDown)',"isIndividual":'#(isIndStatus)'},"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"2","phoneTypeText":"Office","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}}
0
717
When method post
199
19:20:59.868 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/applicantinfo/save/13854 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2167 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":1,"corporateStructure":1,"firstName":"Automation20221115192059","lastName":"Automation","middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":"Automation20221115192059Automation","id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":"Individual","corporateStructureText":"Individual","isIndividual":true},"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"2","phoneTypeText":"Office","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}} 19:21:00.066 response time in milliseconds: 198 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:57 GMT 1 < Content-Length: 2191 {"businessInfo":{"id":0,"website":null,"isLicensed":false,"isAssociated":false,"businessEntity":{"id":3985,"individualOrganization":"1","corporateStructure":1,"isEmployeeForSoleProprietor":null,"firstName":"Automation20221115192059","lastName":"Automation","middleName":"AutoMidName","ssn":"","fein":"","legalName":"Automation20221115192059Automation","suffix":"1","corporateStructureText":"Individual","individualOrganizationText":"Individual","isIndividual":true},"address":{"addressId":29323,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"US","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"NY","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25235,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":7784,"phoneType":3,"countryCode":"91","phone":"999-999-9999","phoneExtension":"1234"}]}},"premisesInfo":{"id":13157,"dba":null,"countyId":1,"countyName":"New York","isDbaSearched":null,"isPremisesRequired":true,"licensePermitID":"","address":{"addressId":29324,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"US","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"NY","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25236,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":7785,"phoneType":2,"countryCode":"+91","phone":"999-999-9999","phoneExtension":"1234"}]}},"applicantDetail":{"id":9749,"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"isPhysicalChange":null,"applicantStatement":{"id":4290,"nameOfApplicant":null,"title":null,"signature":null,"date":null}}}
718
Then status 200
0
424
* call read('LicensesCommonMethods.feature@FillAndSavePrincipalPage') {}
671
>>
karate.UseCases.LicensesCommonMethods
188
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
745
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
754
Given path '/internalapi/api/licensing/app/static/principal/save/'+appId
0
755
And header Content-Type = 'application/json; charset=utf-8'
0
756
* def prncipalName = firstName + getDate1()
0
757
* def dt = licDate()
0
758
And header Accept = 'application/json; text/plain;*/*'
0
759
And header authorization = 'Bearer ' + strToken
0
760
And request {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":'#(convictedOfCrime)',"percentageOfOwners":'#(percentageOfOwners)',"isFingerprintRequired":'#(isFingerprintRequired)',"isFingerprintsApproved":'#(isFingerprintsApproved)',"title":"15","numberOfShares":"","isSignature":false,"date":'#(dt)',"address":{"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"stateId":'#(stateCode)',"county":'#(CountyName)',"city":"New York","zipCode":'#(zipCode)',"zip4":'#(postalCode)',"country":'#(countryName)',"stateName":'#(CityName)',"countryId":229,"zip":'#(zipCode)'},"person":{"personId":0,"firstName":'#(prncipalName)',"middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":'#(dt)',"age":"","choosedEntity":null,"ssnFormat":"","suffixText":"JR"},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":'#(emailId)',"confirmEmail":'#(emailId)'},"titleText":"Vice President","convictedOfCrimeText":"No","disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
0
# {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":"" ,"percentageOfOwners":"" ,"isFingerprintRequired":true ,"isFingerprintsApproved":true ,"title":"","dcjsFingerPrintStatus":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"","addressLine2":"","stateId":40,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"New York","countryId":229,"zip":""},"person":{"personId":0,"firstName":"XA","middleName":"","lastName":"sa","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":null,"confirmEmail":null},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
762
When method post
185
19:21:00.547 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/save/13854 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 1107 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":"1","percentageOfOwners":"20","isFingerprintRequired":true,"isFingerprintsApproved":true,"title":"15","numberOfShares":"","isSignature":false,"date":"2022-11-15T19:21:00.546Z","address":{"addressLine1":"Address1","addressLine2":"Address2","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation20221115192100","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T19:21:00.546Z","age":"","choosedEntity":null,"ssnFormat":"","suffixText":"JR"},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":"automation@svam.com","confirmEmail":"automation@svam.com"},"titleText":"Vice President","convictedOfCrimeText":"No","disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]} 19:21:00.731 response time in milliseconds: 184 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:57 GMT 1 < Content-Length: 1390 {"entities":[],"principals":[{"principalId":3277,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":true,"isFingerprintsApproved":true,"percentageOfOwners":20.0,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","entities":null,"numberOfShares":"","isSignature":false,"isRemove":false,"date":"2022-11-15T00:00:00","convictedOfCrime":"1","title":"15","isLicensed":false,"isAssociated":false,"person":{"personId":5568,"firstName":"Automation20221115192100","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T00:00:00","serialNo":0,"age":0,"choosedEntity":[]},"address":{"addressId":29325,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25237,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
763
Then status 200
0
425
* call read('LicensesCommonMethods.feature@FillAndSaveRepresentativePage') {}
673
>>
karate.UseCases.LicensesCommonMethods
161
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Representative *********************
790
Given path '/internalapi/api/licensing/app/static/rep/save/'+appId
0
791
And header authorization = 'Bearer ' + strToken
0
792
And request {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":'#(CountyName)',"city":'#(CityName)',"zipCode":"10011","country":"United States (US)","stateName":'#(CityName)',"countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""}
0
793
When method post
158
19:21:01.259 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/rep/save/13854 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 897 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":"New York","city":"New York","zipCode":"10011","country":"United States (US)","stateName":"New York","countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""} 19:21:01.416 response time in milliseconds: 157 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:58 GMT 1 < Content-Length: 4 true
794
Then status 200
0
795
And def serverResponse = response
0
426
* call read('LicensesCommonMethods.feature@FillAndSaveMethodOfOperationPage') {}
722
>>
karate.UseCases.LicensesCommonMethods
190
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
6389
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
6398
Given path '/internalapi/api/licensing/app/save'
0
6399
And header Content-Type = 'application/json; charset=utf-8'
0
6400
* def prncipalName = firstName + getDate1()
0
6401
* def dt = licDate()
0
6402
And header Accept = 'application/json; text/plain;*/*'
0
6403
And header authorization = 'Bearer ' + strToken
0
6404
And request {"isApproved":false,"appId":'#(appId)',"formID":1165,"applicationID":"","formName":"","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":1,"formCategory":{},"formCategoryId":1,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and Policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1993,"key":"","label":"Will the business employ a manager?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1994,"key":"","label":"If no, will the principals manage?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1995,"key":"","label":"If Premises is not a caterer establishment, will the premises periodically close to host private events?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1996,"key":"","label":"If Yes, How Frequently?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"Yes","fieldID":1997,"key":"","label":"Will the premises have music?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1998,"key":"","label":"If Live Music, Give Details","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1999,"key":"","label":"Will the premises use the service of an event promoter?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2000,"key":"","label":"Will the Premises Permit Dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2001,"key":"","label":"Will there be exotic dancing, including but not limited to topless entertainment, pole dancing and or lap dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2002,"key":"","label":"Will there be topless entertainment?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":16,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2003,"key":"","label":"Will Security Personnel be used at the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":17,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2004,"key":"","label":"How many?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":18,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2005,"key":"","label":"Provide your proprietary security guard employer unique Identification number assigned to the business by the NYS Department of State Division of Licensing Services or the name of the security company through which the security personnel will be hired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":19,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2006,"key":"","label":"Provide a detailed plan of supervision for the premises to be licensed. Clearly describe how you will maintain control and order over the licensed premises. How will you monitor alcohol sales and prevent sales to minors and sales to intoxicated persons? How will you handle unruly patrons, altercations, etc., to prevent the premises from becoming disorderly?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":20,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2007,"key":"","label":"Are all responses provided in the application consistent with the information provided to the municipality or community board within the standardized notice form for providing thirty day advance notice","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":21,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2008,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":22,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"4","fieldID":2051,"key":"","label":"If Yes, check all that apply","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2052,"key":"","label":"Who will be permitted to dance?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"Method_of_Operation","key":"0","label":"Method Of Operation","order":11,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isStatic":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"parentSection":"","subSections":[],"sectionFieldOrders":[],"address":{"addressLine1":"","addressLine2":"","stateId":null,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"","countryId":229}}],"formVersionId":1699,"version":25,"licenseDescription":"Restaurant-Beer","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"showAbcOfficer":false,"showCorpChange":false,"showEndorsement":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant_Information","Principal","Representative","Landlord_Identification","Personal_Questionnaire"],"showPQ":true,"showCC":false,"showManuOnPrem":false,"licPermitTypeId":40,"tabVisitied":{"Applicant Information":false,"Principal":false,"Representative":false,"Landlord Identification":false,"Personal Questionnaire":false}}
1
6406
When method post
185
19:21:01.955 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 12993 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13854,"formID":1165,"applicationID":"","formName":"","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":1,"formCategory":{},"formCategoryId":1,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and Policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1993,"key":"","label":"Will the business employ a manager?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1994,"key":"","label":"If no, will the principals manage?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1995,"key":"","label":"If Premises is not a caterer establishment, will the premises periodically close to host private events?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1996,"key":"","label":"If Yes, How Frequently?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"Yes","fieldID":1997,"key":"","label":"Will the premises have music?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1998,"key":"","label":"If Live Music, Give Details","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1999,"key":"","label":"Will the premises use the service of an event promoter?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2000,"key":"","label":"Will the Premises Permit Dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2001,"key":"","label":"Will there be exotic dancing, including but not limited to topless entertainment, pole dancing and or lap dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2002,"key":"","label":"Will there be topless entertainment?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":16,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2003,"key":"","label":"Will Security Personnel be used at the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":17,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2004,"key":"","label":"How many?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":18,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2005,"key":"","label":"Provide your proprietary security guard employer unique Identification number assigned to the business by the NYS Department of State Division of Licensing Services or the name of the security company through which the security personnel will be hired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":19,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2006,"key":"","label":"Provide a detailed plan of supervision for the premises to be licensed. Clearly describe how you will maintain control and order over the licensed premises. How will you monitor alcohol sales and prevent sales to minors and sales to intoxicated persons? How will you handle unruly patrons, altercations, etc., to prevent the premises from becoming disorderly?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":20,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2007,"key":"","label":"Are all responses provided in the application consistent with the information provided to the municipality or community board within the standardized notice form for providing thirty day advance notice","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":21,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2008,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":22,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"4","fieldID":2051,"key":"","label":"If Yes, check all that apply","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2052,"key":"","label":"Who will be permitted to dance?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"Method_of_Operation","key":"0","label":"Method Of Operation","order":11,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isStatic":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"parentSection":"","subSections":[],"sectionFieldOrders":[],"address":{"addressLine1":"","addressLine2":"","stateId":null,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"","countryId":229}}],"formVersionId":1699,"version":25,"licenseDescription":"Restaurant-Beer","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"showAbcOfficer":false,"showCorpChange":false,"showEndorsement":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant_Information","Principal","Representative","Landlord_Identification","Personal_Questionnaire"],"showPQ":true,"showCC":false,"showManuOnPrem":false,"licPermitTypeId":40,"tabVisitied":{"Applicant Information":false,"Principal":false,"Representative":false,"Landlord Identification":false,"Personal Questionnaire":false}} 19:21:02.136 response time in milliseconds: 180 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:50:58 GMT 1 < Content-Length: 51 {"appId":13854,"applicationId":"NA-0111-22-119053"}
6407
Then status 200
0
427
* call read('LicensesCommonMethods.feature@FeesValidation') {amount:'#(totalFees)'}
3460
>>
karate.UseCases.LicensesCommonMethods
2059
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
810
* def futureDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
820
* def futureDate = futureDateFunc()
2
822
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
832
* def date = getDate2()
1
834
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
835
And header Content-Type = 'application/json; charset=utf-8'
0
836
And header Accept = 'application/json; text/plain;*/*'
0
837
And header authorization = 'Bearer ' + strToken
0
838
And request {}
0
839
When method get
248
19:21:03.537 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13854 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:03.784 response time in milliseconds: 247 1 < 200 1 < Content-Length: 658 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:01 GMT [{"licenseName":"Restaurant - Beer","applicationId":"NA-0111-22-119053","applicationTypeId":1,"appFeesId":0,"appId":13854,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":0.0,"totalFees":0.0,"filingFees":100.00,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
840
Then status 200
0
841
And def serverResponse = response
0
842
* def licTerm = serverResponse[0].term
0
843
* def licFees = serverResponse[0].licensingFees+''
0
844
* def licTermDesc = serverResponse[0].termDesc
0
845
* def licFeesRefId = serverResponse[0].feesRefId
0
846
* def licAncillaryFees = serverResponse[0].ancillaryFees+''
0
847
* def licfilingFees = serverResponse[0].filingFees+''
0
848
* def licInitialFees = serverResponse[0].initialFees
0
849
* def bndFees = serverResponse[0].bondFee
1
850
* def isBondRequired = serverResponse[0].isBondRequired
0
851
And def totalFees = serverResponse[0].licensingFees+serverResponse[0].filingFees
0
852
And print totalFees
0
19:21:03.786 [print] 1060.0
855
Given path '/internalapi/api/notification/SaveNotification'
0
857
And header Content-Type = 'application/json; charset=utf-8'
0
858
And header Accept = 'application/json; text/plain;*/*'
0
859
And header authorization = 'Bearer ' + strToken
0
860
And request {"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}
0
861
When method post
148
19:21:03.787 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/notification/SaveNotification 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 2006 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13854,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13854,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13854,"createdBy":"Tarun Gupta"} 19:21:03.934 response time in milliseconds: 147 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:51:01 GMT 2 < Content-Length: 5 false
862
Then status 200
0
863
And print response
0
19:21:03.934 [print] false
# And header Content-Type = 'application/json; charset=utf-8'
869
Given path 'internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
871
And header Accept = 'application/json; text/plain;*/*'
0
872
And header authorization = 'Bearer ' + strToken
0
874
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":'#(amount)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":"0.00","totalFees":'#(totalFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(licTerm)',"termDesc":'#(licTermDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
0
875
When method post
204
19:21:03.936 request: 3 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13854/false 3 > Accept: application/json; text/plain;*/* 3 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 3 > Content-Type: application/json; charset=UTF-8 3 > Content-Length: 5071 3 > Host: slaleapqaapi.svam.com 3 > Connection: Keep-Alive 3 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 3 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13854,"slaintakeDate":"2022-11-15T19:21:03.535Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:21:03.535Z","amount":1060}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119053","applicationTypeId":1,"appFeesId":0,"appId":13854,"feesRefId":6039,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"0.00","totalFees":1060.0,"filingFees":"100","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":1060.0,"amountReceived":"0.00","waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-11-22T19:21:03.529Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13854,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13854,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13854,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13854,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13854,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13854,"createdBy":"Tarun Gupta"},"taskId":null} 19:21:04.138 response time in milliseconds: 202 3 < 200 3 < Content-Type: application/json; charset=utf-8 3 < Server: Microsoft-IIS/10.0 3 < Strict-Transport-Security: max-age=2592000 3 < X-Powered-By: ASP.NET 3 < Date: Tue, 15 Nov 2022 13:51:01 GMT 3 < Content-Length: 4 true
876
Then status 200
0
878
Given path 'internalapi/api/licensing/fees/check-payments/get/'+appId
0
879
And header authorization = 'Bearer ' + strToken
0
880
And request {}
0
881
When method get
167
19:21:04.142 request: 4 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/check-payments/get/13854 4 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 4 > Content-Type: application/json; charset=UTF-8 4 > Content-Length: 2 4 > Host: slaleapqaapi.svam.com 4 > Connection: Keep-Alive 4 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 4 > Accept-Encoding: gzip,deflate {} 19:21:04.306 response time in milliseconds: 164 4 < 200 4 < Content-Length: 442 4 < Content-Type: application/json; charset=utf-8 4 < Server: Microsoft-IIS/10.0 4 < Strict-Transport-Security: max-age=2592000 4 < X-Powered-By: ASP.NET 4 < Date: Tue, 15 Nov 2022 13:51:01 GMT [{"checkDetailId":2335,"appId":13854,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T00:00:00","slaintakeDate":"2022-11-15T00:00:00","amount":1060.0000,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T08:51:01.447","modifiedBy":null,"modifiedDate":null}]
882
Then status 200
0
883
And def checkDetailId = response[0].checkDetailId
0
884
And print checkDetailId
0
19:21:04.307 [print] 2335
885
* def amount = response[0].amount
0
886
* def underpaidAmount = totalFees-amount
0
888
And print 'underpaidAmount- ',underpaidAmount
0
19:21:04.307 [print] underpaidAmount- 0.0
890
Given path '/internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
891
And header Content-Type = 'application/json; charset=utf-8'
0
892
* def futureDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
903
* def futureDate = futureDateFunc()
2
904
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
913
* def date = getDate2()
0
915
And header Accept = 'application/json; text/plain;*/*'
0
916
And header authorization = 'Bearer ' + strToken
0
917
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":'#(totalFees)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":'#(licInitialFees)',"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":'#(renewalFees)',"totalFees":'#(totalFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":'#(licAncillaryFees)',"isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
0
920
When method post
221
19:21:04.312 request: 5 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13854/false 5 > Content-Type: application/json; charset=utf-8 5 > Accept: application/json; text/plain;*/* 5 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 5 > Content-Length: 5068 5 > Host: slaleapqaapi.svam.com 5 > Connection: Keep-Alive 5 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 5 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13854,"slaintakeDate":"2022-11-15T19:21:04.310Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:21:04.310Z","amount":1060.0}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119053","applicationTypeId":1,"appFeesId":0,"appId":13854,"feesRefId":6039,"initialFees":0.0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"30","totalFees":1060.0,"filingFees":"100","ancillaryFees":"0","isFeesWaived":false,"underPaymentAmount":1060.0,"amountReceived":"0.00","waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-11-22T19:21:03.529Z","emailNotificationDetail":{"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13854,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13854,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13854,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13854,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13854,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13854,"createdBy":"Tarun Gupta"},"taskId":null} 19:21:04.533 response time in milliseconds: 221 5 < 200 5 < Content-Length: 4 5 < Content-Type: application/json; charset=utf-8 5 < Server: Microsoft-IIS/10.0 5 < Strict-Transport-Security: max-age=2592000 5 < X-Powered-By: ASP.NET 5 < Date: Tue, 15 Nov 2022 13:51:01 GMT true
921
Then status 200
0
# ********* SAVE Application Details To Save *********************
928
Given path '/internalapi/api/licensing/app/save'
0
929
And header authorization = 'Bearer ' + strToken
0
930
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":'#(CityName)',"fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
1
931
When method post
286
19:21:04.537 request: 6 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 6 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 6 > Content-Type: application/json; charset=UTF-8 6 > Content-Length: 30721 6 > Host: slaleapqaapi.svam.com 6 > Connection: Keep-Alive 6 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 6 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13854,"formID":1165,"applicationID":"NA-0111-22-119053","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:21:04.819 response time in milliseconds: 282 6 < 200 6 < Content-Length: 51 6 < Content-Type: application/json; charset=utf-8 6 < Server: Microsoft-IIS/10.0 6 < Strict-Transport-Security: max-age=2592000 6 < X-Powered-By: ASP.NET 6 < Date: Tue, 15 Nov 2022 13:51:02 GMT {"appId":13854,"applicationId":"NA-0111-22-119053"}
932
Then status 200
0
935
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
936
And header authorization = 'Bearer ' + strToken
0
937
And header Content-Type = 'application/json; charset=utf-8'
0
938
And header Accept = 'application/json; text/plain;*/*'
0
939
And request ""
0
940
When method get
223
19:21:04.820 request: 7 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13854 7 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 7 > Content-Type: application/json; charset=utf-8 7 > Accept: application/json; text/plain;*/* 7 > Content-Length: 0 7 > Host: slaleapqaapi.svam.com 7 > Connection: Keep-Alive 7 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 7 > Accept-Encoding: gzip,deflate 19:21:05.042 response time in milliseconds: 222 7 < 200 7 < Content-Length: 660 7 < Content-Type: application/json; charset=utf-8 7 < Server: Microsoft-IIS/10.0 7 < Strict-Transport-Security: max-age=2592000 7 < X-Powered-By: ASP.NET 7 < Date: Tue, 15 Nov 2022 13:51:02 GMT [{"licenseName":"Restaurant - Beer","applicationId":"NA-0111-22-119053","applicationTypeId":1,"appFeesId":3073,"appId":13854,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":0.0,"totalFees":0.0,"filingFees":100.00,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
941
Then status 200
0
942
And print response[0].appFeesId
0
19:21:05.044 [print] 3073
943
And def appFeesId1 = response[0].appFeesId
0
944
And def feesRefId1 = response[0].feesRefId
0
945
And print appFeesId1
0
19:21:05.044 [print] 3073
946
And print feesRefId1
0
19:21:05.044 [print] 6039
947
And def applicationTypeId = response[0].applicationTypeId
0
948
And print applicationTypeId
0
19:21:05.045 [print] 1
# ********* Save PAYMENT *********************
951
Given path '/internalapi/api/licensing/fees/details/save/'+appId +'/false'
0
953
* def slaDate = licFeesDate()
1
954
* def slaaDate = licDate()
1
955
* def licInitialFees1 = licInitialFees+''
0
956
And print licInitialFees1
0
19:21:05.047 [print] 0
957
* def renewalFees1 = renewalFees+''
0
958
And print renewalFees1
0
19:21:05.047 [print] 30
959
* def totalFees1 = totalFees+''
0
961
And print totalFees1
0
19:21:05.047 [print] 1060
962
* def licAncillaryFees1 = licAncillaryFees+''
0
963
* def licfilingFees1 = licfilingFees+''
0
965
And header authorization = 'Bearer ' + strToken
0
966
And request {"checks":[{"checkDetailId":'#(checkDetailId)',"appId":'#(appId)',"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":'#(date)',"slaintakeDate":'#(date)',"amount":'#(amount)',"appliedTo":null,"amountUsed":'#(amount)',"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":'#(date)',"modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":'#(licFeesRefId)',"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":"0.00","totalFees":'#(totalFees1)',"filingFees":'#(licfilingFees1)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(underpaidAmount)',"amountReceived":'#(amount)',"waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":'#(appId)',"checkDetailId":'#(checkDetailId)',"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":'#(amount)',"amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
0
971
When method post
260
19:21:05.049 request: 8 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13854/false 8 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 8 > Content-Type: application/json; charset=UTF-8 8 > Content-Length: 5458 8 > Host: slaleapqaapi.svam.com 8 > Connection: Keep-Alive 8 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 8 > Accept-Encoding: gzip,deflate {"checks":[{"checkDetailId":2335,"appId":13854,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T19:21:04.310Z","slaintakeDate":"2022-11-15T19:21:04.310Z","amount":1060.0,"appliedTo":null,"amountUsed":1060.0,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T19:21:04.310Z","modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119053","applicationTypeId":1,"appFeesId":6039,"appId":13854,"feesRefId":6039,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"0.00","totalFees":"1060","filingFees":"100","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":1060.0,"waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":13854,"checkDetailId":2335,"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":1060.0,"amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":"2022-11-22T19:21:03.529Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13854,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13854,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13854,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13854,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13854,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13854,"createdBy":"Tarun Gupta"},"taskId":null} 19:21:05.308 response time in milliseconds: 259 8 < 200 8 < Content-Length: 4 8 < Content-Type: application/json; charset=utf-8 8 < Server: Microsoft-IIS/10.0 8 < Strict-Transport-Security: max-age=2592000 8 < X-Powered-By: ASP.NET 8 < Date: Tue, 15 Nov 2022 13:51:02 GMT true
972
Then status 200
0
973
And print response
0
19:21:05.309 [print] true
# ********* SAVE Application Details To Save *********************
978
Given path '/internalapi/api/licensing/app/save'
0
979
And header authorization = 'Bearer ' + strToken
0
980
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":'#(CityName)',"fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
3
981
When method post
280
19:21:05.317 request: 9 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 9 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 9 > Content-Type: application/json; charset=UTF-8 9 > Content-Length: 30721 9 > Host: slaleapqaapi.svam.com 9 > Connection: Keep-Alive 9 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 9 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13854,"formID":1165,"applicationID":"NA-0111-22-119053","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:21:05.592 response time in milliseconds: 275 9 < 200 9 < Content-Length: 51 9 < Content-Type: application/json; charset=utf-8 9 < Server: Microsoft-IIS/10.0 9 < Strict-Transport-Security: max-age=2592000 9 < X-Powered-By: ASP.NET 9 < Date: Tue, 15 Nov 2022 13:51:02 GMT {"appId":13854,"applicationId":"NA-0111-22-119053"}
982
Then status 200
0
983
And def serverResponse = response
0
429
* call read('LicensesCommonMethods.feature@SubmitLicenseAndValidateLicStatus') {expStatus:'Awaiting Review'}
4399
>>
karate.UseCases.LicensesCommonMethods
3138
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Application SUBMIT *********************
1099
Given path '/internalapi/api/licensing/app/submit'
0
1100
And header authorization = 'Bearer ' + strToken
0
1101
And request {"appId":'#(appId)',"wfType":null}
0
1102
When method post
273
19:21:06.866 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/submit 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 29 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"appId":13854,"wfType":null} 19:21:07.138 response time in milliseconds: 272 1 < 200 1 < Content-Length: 123 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:04 GMT {"success":true,"submittedApps":[{"success":true,"taskId":0,"appId":13854,"applicationId":"NA-0111-22-119053","error":""}]}
1103
Then status 200
0
1104
And def serverResponse = response
0
1105
And match response.success == true
0
1106
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
2860
>>
karate.UseCases.LicensesCommonMethods
981
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
820
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
154
19:21:09.839 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13854 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:09.992 response time in milliseconds: 153 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:07 GMT 1 < Content-Length: 216 {"applicationId":"NA-0111-22-119053","submitDate":"2022-11-15T08:51:04.353","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:21:09.992 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1
430
* call read('LicensesCommonMethods.feature@AssignApplicationsToExaminer') {}
2524
>>
karate.UseCases.LicensesCommonMethods
1760
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* AssignApplicationsSaveDigestDataToExaminer *********************
1139
Given path '/internalapi/api/licensing/examiner/assignApplicationsToExaminer'
0
1140
And header authorization = 'Bearer ' + strToken
0
1141
And request [{"appId":'#(appId)',"examinerId":1069,"priority":"Normal"}]
0
1142
When method post
244
19:21:10.768 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/examiner/assignApplicationsToExaminer 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 55 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate [{"appId":13854,"examinerId":1069,"priority":"Normal"}] 19:21:11.010 response time in milliseconds: 242 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:08 GMT 1 < Content-Length: 5 false
1143
And def serverResponse = response
0
1144
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
1512
>>
karate.UseCases.LicensesCommonMethods
616
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
319
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
292
19:21:12.224 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13854 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:12.515 response time in milliseconds: 291 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:09 GMT 1 < Content-Length: 216 {"applicationId":"NA-0111-22-119053","submitDate":"2022-11-15T08:51:04.353","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:21:12.516 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1
431
* call read('LicensesCommonMethods.feature@ExaminerReviewApprovalToLB') {}
1997
>>
karate.UseCases.LicensesCommonMethods
1106
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Examiner Review Approval to LB *********************
1149
* def summisionDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS"); var date = new java.util.Date(); return sdf.format(date); }
1157
Given path '/internalapi/api/licensing/examiner-review/SaveNewLicense'
0
1158
* def formatedSumbitDate = summisionDate()
0
1159
And header authorization = 'Bearer ' + strToken
0
1160
And header current-wfroleid = 4
0
1161
And request {"isFingerPrintsApproved":false,"isFingerPrintsRequired":false,"isCorpLLCDissolved":false,"isCorpLLCDTaken":false,"isSendPDLetter":false,"isDisable500LB_FBPT":false,"isDisableLBForPD":false,"isDisableLBForCaseClosed":false,"isDisableLateRenewalAndUnderpayment":false,"isLiquidatorPermitHasCompleted":-1,"isSubmit":true,"fieldDeficiencies":[],"masterFileData":[],"combinedCraftData":[],"application":{"applicationCategory":1,"appId":'#(appId)',"applicationId":'#(ApplicationId)',"licePermitTypeId":null,"applicationTypeId":1,"formVersionId":1231,"formId":'#(formId)',"legalName":'#(legalName)',"submitDate":'#(formatedSumbitDate)',"isGISRequired":null,"licenseDescription":'#(description)',"recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":'#(CityName)',"priority":"Normal","expirationDate":null,"appStatusId":3,"taskStatus":"Awaiting Review","taskId":1026,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":true,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":false,"isNotQualified":false,"eventDate":null,"appStatus":{"appStatusId":3,"statusDescription":"Under Review","isActive":true,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":{"appExaminerId":1069,"appId":'#(appId)',"examinerId":1069,"name":null,"assignDate":'#(formatedSumbitDate)',"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"assignAppToLB":null,"licePermitType":{"licPermitTypeId":'#(mainLicensePermitTypeId)',"type":"1","category":"1","product":'#(productName)',"class":null,"description":null,"sectionOfLaw":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isTempPermit":false,"isELicensingPermit":false,"isAdditionalBar":false},"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":'#(mainLicensePermitTypeId)',"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":true,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":'#(formatedSumbitDate)'},"appId":'#(appId)',"notificationTypeId":2028,"applicationType":1,"decisionType":{"name":"Send to Licensing Board","value":2},"emailNotificationModel":{"applicant":{},"attorney":{},"communityBoard":{},"other":{}},"hasErrors":[],"taskId":1026,"newComments":"","recommendedDecisionId":null};
0
1162
When method post
255
19:21:13.418 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/examiner-review/SaveNewLicense 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > current-wfroleid: 4 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 3055 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isFingerPrintsApproved":false,"isFingerPrintsRequired":false,"isCorpLLCDissolved":false,"isCorpLLCDTaken":false,"isSendPDLetter":false,"isDisable500LB_FBPT":false,"isDisableLBForPD":false,"isDisableLBForCaseClosed":false,"isDisableLateRenewalAndUnderpayment":false,"isLiquidatorPermitHasCompleted":-1,"isSubmit":true,"fieldDeficiencies":[],"masterFileData":[],"combinedCraftData":[],"application":{"applicationCategory":1,"appId":13854,"applicationId":"NA-0111-22-119053","licePermitTypeId":null,"applicationTypeId":1,"formVersionId":1231,"formId":1165,"legalName":"Automation20221115192059Automation","submitDate":"2022-11-15T19:21:13.417","isGISRequired":null,"licenseDescription":"Restaurant-Beer","recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":"New York","priority":"Normal","expirationDate":null,"appStatusId":3,"taskStatus":"Awaiting Review","taskId":1026,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":true,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":false,"isNotQualified":false,"eventDate":null,"appStatus":{"appStatusId":3,"statusDescription":"Under Review","isActive":true,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":{"appExaminerId":1069,"appId":13854,"examinerId":1069,"name":null,"assignDate":"2022-11-15T19:21:13.417","isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"assignAppToLB":null,"licePermitType":{"licPermitTypeId":40,"type":"1","category":"1","product":"RestaurantBeer","class":null,"description":null,"sectionOfLaw":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isTempPermit":false,"isELicensingPermit":false,"isAdditionalBar":false},"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":40,"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":true,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":"2022-11-15T19:21:13.417"},"appId":13854,"notificationTypeId":2028,"applicationType":1,"decisionType":{"name":"Send to Licensing Board","value":2},"emailNotificationModel":{"applicant":{},"attorney":{},"communityBoard":{},"other":{}},"hasErrors":[],"taskId":1026,"newComments":"","recommendedDecisionId":null} 19:21:13.672 response time in milliseconds: 254 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:10 GMT 1 < Content-Length: 4 true
1163
Then status 200
0
1164
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
848
>>
karate.UseCases.LicensesCommonMethods
338
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
182
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
151
19:21:14.360 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13854 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:14.510 response time in milliseconds: 150 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:10 GMT 1 < Content-Length: 216 {"applicationId":"NA-0111-22-119053","submitDate":"2022-11-15T08:51:04.353","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:21:14.511 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1
432
* call read('LicensesCommonMethods.feature@LBClaimingQueue') {}
1524
>>
karate.UseCases.LicensesCommonMethods
1036
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* LB Claiming Queue *********************
1249
Given path 'internalapi/api/licensing/claiming-queue/add/'+appId +'/1069'
0
1250
And header authorization = 'Bearer ' + strToken
0
1251
And header current-wfroleid = 5
0
1252
And request {}
0
1253
When method post
158
19:21:15.013 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/claiming-queue/add/13854/1069 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > current-wfroleid: 5 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:15.170 response time in milliseconds: 157 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:12 GMT 1 < Content-Length: 4 true
1254
Then status 200
0
1255
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
874
>>
karate.UseCases.LicensesCommonMethods
388
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
155
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
230
19:21:15.806 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13854 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:16.035 response time in milliseconds: 228 1 < 200 1 < Content-Length: 216 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:12 GMT {"applicationId":"NA-0111-22-119053","submitDate":"2022-11-15T08:51:04.353","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:21:16.035 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1
433
* def expirationDate = fundDueDateFunc(10)
1
434
* call read('LicensesCommonMethods.feature@LBApprovalWithDueDate') {approvalName:'Approved', expStatus:'Approved'}
1716
>>
karate.UseCases.LicensesCommonMethods
1248
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* LB Approval *********************
2346
Given path '/internalapi/api/licensing/search/GetEmailNotificationByAppIdAndNotificationTypeId/'+appId+'/0'
0
2347
And header authorization = 'Bearer ' + strToken
0
2348
And request ''
0
2349
When method get
200
19:21:16.518 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/search/GetEmailNotificationByAppIdAndNotificationTypeId/13854/0 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: text/plain; charset=UTF-8 1 > Content-Length: 0 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate 19:21:16.717 response time in milliseconds: 199 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:14 GMT 1 < Content-Length: 1959 {"applicant":{"communicationId":25235,"email":"automation@svam.com","appId":13854,"emailContactTypeId":1,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":25238,"email":"sbandi@svam.com","appId":13854,"emailContactTypeId":2,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null}}
2350
Then status 200
0
2351
And def serverResponse = response
0
2352
* def applicantCommId = serverResponse.applicant.communicationId
0
2353
* def attorneyCommId = serverResponse.attorney.communicationId
0
2355
Given path '/internalapi/api/licensing/new-license/saveDecision'
0
2356
And header authorization = 'Bearer ' + strToken
0
2357
And header current-wfroleid = 5
0
2358
* def getSelectedDecisionFunc =
0
function(value1){ if (value1 == 'Approved'){ return 1; } else if (value1 == 'Disapproved'){ return 2; } else if (value1 == 'Disapproval to Counsel'){ return 3; }else if (value1 == 'Withdrawal'){ return 4; }else if (value1 == 'Conditionally Approved'){ return 5; }else if (value1 == 'FB Decision Required'){ return 6; }else if (value1 == 'Return to Examiner'){ return 7; } else { return 1; } }
2384
* def selectedDecisionCode = getSelectedDecisionFunc(approvalName)
1
2385
And print selectedDecisionCode
0
19:21:16.718 [print] 1
2386
And request {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":'#(appId)',"applicationType":1,"applicationId":'#(ApplicationId)',"legalName":'#(legalName)',"statusId":3,"decisionType":{"name":'#(approvalName)',"value":'#(selectedDecisionCode)'},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":'#(effectiveDate)',"expirationDate":'#(expirationDate)',"stipulations":[],"descriptions":[]}}
0
2388
When method post
278
19:21:16.721 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/new-license/saveDecision 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > current-wfroleid: 5 2 > Content-Type: application/json; charset=UTF-8 2 > Content-Length: 2479 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":13854,"applicationType":1,"applicationId":"NA-0111-22-119053","legalName":"Automation20221115192059Automation","statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":"2022-11-15","expirationDate":"2022-11-25T19:21:16.048Z","stipulations":[],"descriptions":[]}} 19:21:16.997 response time in milliseconds: 276 2 < 200 2 < Content-Length: 4 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:51:14 GMT true
2389
Then status 200
0
2390
And def serverResponse = response
0
2391
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
765
>>
karate.UseCases.LicensesCommonMethods
280
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
126
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
150
19:21:17.603 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13854 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:17.752 response time in milliseconds: 149 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:15 GMT 1 < Content-Length: 209 {"applicationId":"NA-0111-22-119053","submitDate":"2022-11-15T08:51:04.353","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Approved"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:21:17.753 [print] Approved
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1
435
* call read('LicensesCommonMethods.feature@ValidateLicenseApplicationStatus') {LicAppStatus:'Approved'}
756
>>
karate.UseCases.LicensesCommonMethods
224
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1326
Given path 'internalapi/api/GenericSearch/SearchLicense'
0
1327
And header Content-Type = 'application/json; charset=utf-8'
0
1328
And header Accept = 'application/json; text/plain;*/*'
0
1329
And header authorization = 'Bearer ' + strToken
0
1330
And params {page:1,pageSize:10}
0
1331
And request [{"dataTypeValue":"Text","key":"ApplicationId","operatorValue":"=","value":'#(ApplicationId)'}]
0
1332
When method post
221
19:21:18.296 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/GenericSearch/SearchLicense?pageSize=10&page=1 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 96 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate [{"dataTypeValue":"Text","key":"ApplicationId","operatorValue":"=","value":"NA-0111-22-119053"}] 19:21:18.516 response time in milliseconds: 220 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:15 GMT 1 < Content-Length: 684 {"data":[{"acaId":13854,"acaType":"application","applicationLicenseId":"0111-22-129120","legacySerialNo":null,"legalName":"Automation20221115192059Automation","dba":null,"licenseDescription":"Restaurant-Beer","expirationDate":"2022-11-25T00:00:00","examinerAssigned":"Tarun Gupta","premisesAddress":"Address1 Address2 New York New York New York 12345 1234 United States (US)","applicantAddress":"Address1 Address2 New York New York New York 12345 1234 United States (US)","feinSsn":"","formId":1165,"applicationId":"NA-0111-22-119053","licenseId":"0111-22-129120","wfRoleId":2,"applicationStatus":"Approved","licenseStatus":"Active"}],"total":1,"aggregateResults":null,"errors":null}
1333
Then status 200
0
1334
And print response
0
19:21:18.517 [print] { "data": [ { "acaId": 13854, "acaType": "application", "applicationLicenseId": "0111-22-129120", "legacySerialNo": null, "legalName": "Automation20221115192059Automation", "dba": null, "licenseDescription": "Restaurant-Beer", "expirationDate": "2022-11-25T00:00:00", "examinerAssigned": "Tarun Gupta", "premisesAddress": "Address1 Address2 New York New York New York 12345 1234 United States (US)", "applicantAddress": "Address1 Address2 New York New York New York 12345 1234 United States (US)", "feinSsn": "", "formId": 1165, "applicationId": "NA-0111-22-119053", "licenseId": "0111-22-129120", "wfRoleId": 2, "applicationStatus": "Approved", "licenseStatus": "Active" } ], "total": 1, "aggregateResults": null, "errors": null }
1335
* match response.data[0].applicationStatus == '#(LicAppStatus)'
1
437
* call read('LicensesCommonMethods.feature@GetLicenseId') {}
688
>>
karate.UseCases.LicensesCommonMethods
245
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
3212
Given path '/internalapi/api/licensing/LBDecision/getLicenseByAppId/' + appId +'/-1'
0
3213
And header authorization = 'Bearer ' + strToken
0
3214
* def EffectiveDate = EffDate()
0
3215
And request {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":'#(appId)',"applicationType":1,"applicationId":'#(ApplicationId)',"legalName":null,"statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":'#(EffectiveDate)',"expirationDate":'#(expiryDate)',"stipulations":[],"descriptions":[]}}
3
3216
When method get
236
19:21:18.966 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/LBDecision/getLicenseByAppId/13854/-1 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 2436 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":13854,"applicationType":1,"applicationId":"NA-0111-22-119053","legalName":null,"statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":"2022-11-15","expirationDate":"#(expiryDate)","stipulations":[],"descriptions":[]}} 19:21:19.202 response time in milliseconds: 236 1 < 200 1 < Content-Length: 2853 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:16 GMT {"license":{"licId":1469,"applicationId":null,"licenseId":"0111-22-129120","licensePermitId":null,"licePermitTypeId":40,"appId":13854,"legacySerialNo":null,"issueDate":null,"expiryDate":"2025-10-31T00:00:00","effectiveDate":"2022-11-15T00:00:00","seasonalStartDate":null,"seasonalEndDate":null,"safeKeepingExpiryDate":null,"status":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"extTempPermitEnabled":false,"application":{"applicationCategory":null,"appId":null,"applicationId":null,"licePermitTypeId":null,"applicationTypeId":null,"formVersionId":null,"formId":null,"legalName":null,"submitDate":null,"isGISRequired":null,"licenseDescription":null,"recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":null,"priority":null,"expirationDate":null,"appStatusId":null,"taskStatus":null,"taskId":null,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":null,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":null,"isNotQualified":null,"eventDate":null,"appStatus":{"appStatusId":0,"statusDescription":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":null,"assignAppToLB":null,"licePermitType":null,"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":0,"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isCaseOpenSameAddress":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"clericalName":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"isFairOrFestival":false,"isShowEffExpDateOnLBReview":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"options":null,"emailNotificationModel":null,"taskOptionsListNested":null,"days":0,"permit":null,"licPermitType":null,"licensePermitMapping":null,"licenseFee":null,"accountBalance":null,"licenseDescription":null,"isSeasonal":false,"isSummerSeasonal":false,"newExpiryDate":null,"amountDue":null,"originalLicenseFee":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"wfRoleId":0},"person":[],"totalRecord":0,"apps":[]}
3217
Then status 200
0
3218
And def serverResponse = response
0
3219
And print serverResponse
1
19:21:19.203 [print] { "license": { "licId": 1469, "applicationId": null, "licenseId": "0111-22-129120", "licensePermitId": null, "licePermitTypeId": 40, "appId": 13854, "legacySerialNo": null, "issueDate": null, "expiryDate": "2025-10-31T00:00:00", "effectiveDate": "2022-11-15T00:00:00", "seasonalStartDate": null, "seasonalEndDate": null, "safeKeepingExpiryDate": null, "status": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null, "extTempPermitEnabled": false, "application": { "applicationCategory": null, "appId": null, "applicationId": null, "licePermitTypeId": null, "applicationTypeId": null, "formVersionId": null, "formId": null, "legalName": null, "submitDate": null, "isGISRequired": null, "licenseDescription": null, "recommendedDecisionId": null, "status500": null, "isApplicableForPDLetter": false, "countyName": null, "priority": null, "expirationDate": null, "appStatusId": null, "taskStatus": null, "taskId": null, "currentWfstatus": null, "communityBoard": null, "isLicenseApplication": null, "currentDueDate": null, "isFinalDeficiency": null, "isHighlyDeficient": null, "isAllDeficienciesMet": null, "pastDueDate": null, "memo": null, "isOneTimePermit": null, "dueDateAction": null, "isDisapprovedForCause": null, "isNotQualified": null, "eventDate": null, "appStatus": { "appStatusId": 0, "statusDescription": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null }, "applicationType": null, "assignAppExaminer": null, "assignAppToLB": null, "licePermitType": null, "assoApplicationList": [ ], "isTempPermit": null, "isTempOrLiq": false, "licPermitTypeId": 0, "isAssociatedLicense": null, "effectiveDate": null, "assignedUserId": null, "amendmentTypeId": null, "amendmentType": null, "disapprovedDate": null, "condApprovedDate": null, "addressId": null, "isCaseOpen": null, "isClosed": null, "isCaseOpenSameAddress": null, "isSpecialEventPlusFour": null, "isSpecialEventInsideFiveBoroughs": null, "licStatus": null, "createdBy": null, "clericalName": null, "licenseId": null, "address": null, "isNybeApp": false, "isHearingCompleted": null, "does500FtHearingExist": null, "parentAppStatus": null, "premisesAppCount": 0, "statusDescription": null, "eventAddress": null, "isFairOrFestival": false, "isShowEffExpDateOnLBReview": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskRoleId": 0, "taskDecision": null, "isActive": null, "createdDate": null, "modifiedBy": null, "wfRoleId": 0, "modifiedDate": null }, "options": null, "emailNotificationModel": null, "taskOptionsListNested": null, "days": 0, "permit": null, "licPermitType": null, "licensePermitMapping": null, "licenseFee": null, "accountBalance": null, "licenseDescription": null, "isSeasonal": false, "isSummerSeasonal": false, "newExpiryDate": null, "amountDue": null, "originalLicenseFee": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskId": null, "taskRoleId": 0, "taskDecision": null, "wfRoleId": 0 }, "person": [ ], "totalRecord": 0, "apps": [ ] }
3220
And def licId = serverResponse.license.licId
0
3221
And def licenseId = serverResponse.license.licenseId
0
3222
And def ActEffDate = serverResponse.license.seasonalStartDate
0
3223
And def ActExpDate = serverResponse.license.expiryDate
0
3224
And print serverResponse
0
19:21:19.204 [print] { "license": { "licId": 1469, "applicationId": null, "licenseId": "0111-22-129120", "licensePermitId": null, "licePermitTypeId": 40, "appId": 13854, "legacySerialNo": null, "issueDate": null, "expiryDate": "2025-10-31T00:00:00", "effectiveDate": "2022-11-15T00:00:00", "seasonalStartDate": null, "seasonalEndDate": null, "safeKeepingExpiryDate": null, "status": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null, "extTempPermitEnabled": false, "application": { "applicationCategory": null, "appId": null, "applicationId": null, "licePermitTypeId": null, "applicationTypeId": null, "formVersionId": null, "formId": null, "legalName": null, "submitDate": null, "isGISRequired": null, "licenseDescription": null, "recommendedDecisionId": null, "status500": null, "isApplicableForPDLetter": false, "countyName": null, "priority": null, "expirationDate": null, "appStatusId": null, "taskStatus": null, "taskId": null, "currentWfstatus": null, "communityBoard": null, "isLicenseApplication": null, "currentDueDate": null, "isFinalDeficiency": null, "isHighlyDeficient": null, "isAllDeficienciesMet": null, "pastDueDate": null, "memo": null, "isOneTimePermit": null, "dueDateAction": null, "isDisapprovedForCause": null, "isNotQualified": null, "eventDate": null, "appStatus": { "appStatusId": 0, "statusDescription": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null }, "applicationType": null, "assignAppExaminer": null, "assignAppToLB": null, "licePermitType": null, "assoApplicationList": [ ], "isTempPermit": null, "isTempOrLiq": false, "licPermitTypeId": 0, "isAssociatedLicense": null, "effectiveDate": null, "assignedUserId": null, "amendmentTypeId": null, "amendmentType": null, "disapprovedDate": null, "condApprovedDate": null, "addressId": null, "isCaseOpen": null, "isClosed": null, "isCaseOpenSameAddress": null, "isSpecialEventPlusFour": null, "isSpecialEventInsideFiveBoroughs": null, "licStatus": null, "createdBy": null, "clericalName": null, "licenseId": null, "address": null, "isNybeApp": false, "isHearingCompleted": null, "does500FtHearingExist": null, "parentAppStatus": null, "premisesAppCount": 0, "statusDescription": null, "eventAddress": null, "isFairOrFestival": false, "isShowEffExpDateOnLBReview": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskRoleId": 0, "taskDecision": null, "isActive": null, "createdDate": null, "modifiedBy": null, "wfRoleId": 0, "modifiedDate": null }, "options": null, "emailNotificationModel": null, "taskOptionsListNested": null, "days": 0, "permit": null, "licPermitType": null, "licensePermitMapping": null, "licenseFee": null, "accountBalance": null, "licenseDescription": null, "isSeasonal": false, "isSummerSeasonal": false, "newExpiryDate": null, "amountDue": null, "originalLicenseFee": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskId": null, "taskRoleId": 0, "taskDecision": null, "wfRoleId": 0 }, "person": [ ], "totalRecord": 0, "apps": [ ] }
3225
And print 'licId : ' , licId
0
19:21:19.204 [print] licId : 1469
3226
And print 'licenseId : ' , licenseId
0
19:21:19.204 [print] licenseId : 0111-22-129120
3227
And match licId != []
0
3228
And match licenseId != []
0
438
And print licenseId
0
19:21:19.209 [print] 0111-22-129120
439
* def notQualifiedApplication = false
0
440
* def notQlfdAppMessage = ''
0
441
* call read('RenewalCommonMethods.feature@IntakeRenewalLicense') {}
3274
>>
karate.UseCases.RenewalCommonMethods
2746
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
1
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
1
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
169
Given path '/internalapi/api/licensing/search/searchLicensesAndPermits/'
0
170
And header Content-Type = 'application/json; charset=utf-8'
0
172
And header Accept = 'application/json; text/plain;*/*'
0
173
And header authorization = 'Bearer ' + strToken
0
176
And request {"WfTaskIdList":[],"LicenseStatusList":[19,45,40],"ShowLicensesAndPermits":true,"Status":null,"isTempPermit":null,"ApplicationId":null,"LicensePermitId":'#(licenseId)',"LegalName":null,"FEIN":null,"applyFor":""}
0
177
When method POST
176
19:21:19.736 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/search/searchLicensesAndPermits 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 213 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"WfTaskIdList":[],"LicenseStatusList":[19,45,40],"ShowLicensesAndPermits":true,"Status":null,"isTempPermit":null,"ApplicationId":null,"LicensePermitId":"0111-22-129120","LegalName":null,"FEIN":null,"applyFor":""} 19:21:19.912 response time in milliseconds: 175 1 < 200 1 < Content-Length: 1292 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:16 GMT {"licenses":[{"lpId":1469,"licensePermitId":"0111-22-129120","licPermitTypeId":40,"isAccociatedLicense":false,"appId":13854,"mainAppId":13854,"status":"Active","legacySerialNo":null,"isLicense":true,"isPermit":null,"issueDate":"2022-11-15T00:00:00","expiryDate":"2022-11-25T00:00:00","effectiveDate":"2022-11-15T00:00:00","safeKeepingExpiryDate":null,"licensePermitStatusId":19,"combinedCraftId":null,"masterFileId":null,"isApplicableForTransfer":null,"surrenderDate":null,"isActive":true,"createdDate":"2022-11-15T08:51:14.207","modifiedDate":null,"submitDate":"2022-11-15T08:51:04.353","description":"Restaurant-Beer","county":"New York","legalName":"Automation20221115192059Automation","fein":"","formId":1165,"isRenewalRequird":true,"dba":null,"associatePermits":[],"provisions":[],"address":{"addressId":null,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":null,"county":"New York","zipCode":"12345","zip4":null,"street":null,"telephoneNumber":null,"country":null,"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":null,"serialNo":0,"addressType":null,"state":null},"mfCCId":null}],"totalRecord":1}
178
Then status 200
0
179
* def licPermitTypeId = response.licenses[0].licPermitTypeId
0
180
* def lpId = response.licenses[0].lpId
0
181
* def effectiveDate = response.licenses[0].effectiveDate
0
182
* def expiryDate = response.licenses[0].expiryDate
0
183
* def legalName = response.licenses[0].legalName
0
184
* def licAppId = response.licenses[0].appId
0
185
* def submitDate = response.licenses[0].submitDate
0
186
* call read('LicensesCommonMethods.feature@GetCountyList') {}
2212
>>
karate.UseCases.LicensesCommonMethods
872
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
117
Given path '/internalapi/api/reference'
0
118
* def dbSts = db.cleanHeap()
727
119
And header authorization = 'Bearer ' + strToken
0
120
And header Content-Type = 'application/json;charset=utf-8'
0
121
And header Accept = 'text/plain'
0
# * def query = {name:countyzone&onlyActives:true}
123
And params {name:countyzone,onlyActives:true}
0
#And param onlyActives='true'
125
And request {}
0
126
When method get
142
19:21:21.978 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/reference?name=countyzone&onlyActives=true 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json;charset=utf-8 1 > Accept: text/plain 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:22.119 response time in milliseconds: 141 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:19 GMT 1 < Content-Length: 11712 {"values":[{"CountyId":1,"County":"New York","ShortName":"NEW","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T00:00:00","ModifiedBy":"esandoval","ModifiedDate":"2020-11-10T11:30:56.047"},{"CountyId":2,"County":"Kings","ShortName":"KING","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":3,"County":"Bronx","ShortName":"BRON","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":4,"County":"Queens","ShortName":"QUEE","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":5,"County":"Richmond","ShortName":"RICH","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":6,"County":"Nassau","ShortName":"NASS","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":7,"County":"Suffolk","ShortName":"SUFF","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":8,"County":"Westchester","ShortName":"WEST","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":9,"County":"Orange","ShortName":"ORAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":10,"County":"Putnam","ShortName":"PUTN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":11,"County":"Rockland","ShortName":"ROCK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":12,"County":"Albany","ShortName":"ALBA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":13,"County":"Clinton","ShortName":"CLIN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":14,"County":"Columbia","ShortName":"COLU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":15,"County":"Dutchess","ShortName":"DUTC","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":16,"County":"Essex","ShortName":"ESSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":17,"County":"Franklin","ShortName":"FRAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":18,"County":"Fulton","ShortName":"FULT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":19,"County":"Greene","ShortName":"GREE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":20,"County":"Hamilton","ShortName":"HAMI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":21,"County":"Montgomery","ShortName":"MONT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":22,"County":"Rensselaer","ShortName":"RENS","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":23,"County":"Saratoga","ShortName":"SARA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":24,"County":"Schenectady","ShortName":"SCHE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":25,"County":"Schoharie","ShortName":"SCHO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":26,"County":"Sullivan","ShortName":"SULL","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":27,"County":"Ulster","ShortName":"ULST","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":28,"County":"Warren","ShortName":"WARR","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":29,"County":"Washington","ShortName":"WASH","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":30,"County":"Allegany","ShortName":"ALLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":31,"County":"Cattaraugus","ShortName":"CATT","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":32,"County":"Chautauqua","ShortName":"CHAU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":33,"County":"Chemung","ShortName":"CHEM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":34,"County":"Erie","ShortName":"ERIE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":35,"County":"Genesee","ShortName":"GENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":36,"County":"Livingston","ShortName":"LIVI","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":37,"County":"Monroe","ShortName":"MONR","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":38,"County":"Niagara","ShortName":"NIAG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":39,"County":"Ontario","ShortName":"ONTA","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":40,"County":"Orleans","ShortName":"ORLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":41,"County":"Schuyler","ShortName":"SCHU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":42,"County":"Seneca","ShortName":"SENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":43,"County":"Steuben","ShortName":"STEU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":44,"County":"Wayne","ShortName":"WAYN","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":45,"County":"Wyoming","ShortName":"WYOM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":46,"County":"Yates","ShortName":"YATE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":47,"County":"Broome","ShortName":"BROO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":48,"County":"Chenango","ShortName":"CHEN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":49,"County":"Cortland","ShortName":"CORT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":50,"County":"Delaware","ShortName":"DELA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":51,"County":"Herkimer","ShortName":"HERK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":52,"County":"Jefferson","ShortName":"JEFF","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":53,"County":"Lewis","ShortName":"LEWI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":54,"County":"Madison","ShortName":"MADI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":55,"County":"Oneida","ShortName":"ONEI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":56,"County":"Onondaga","ShortName":"ONON","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":57,"County":"Oswego","ShortName":"OSWE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":58,"County":"Otsego","ShortName":"OTSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":59,"County":"St. Lawrence","ShortName":"ST L","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":60,"County":"Cayuga","ShortName":"CAYU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":61,"County":"Tioga","ShortName":"TIOG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":62,"County":"Tompkins","ShortName":"TOMP","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.6","ModifiedBy":null,"ModifiedDate":null}],"name":"countyzone","schema":[{"columnName":"CountyId","dataType":"int","maxLenght":null,"isRequired":true},{"columnName":"County","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ShortName","dataType":"nvarchar","maxLenght":10,"isRequired":false},{"columnName":"ZoneNo","dataType":"int","maxLenght":null,"isRequired":false},{"columnName":"IsActive","dataType":"bit","maxLenght":null,"isRequired":false},{"columnName":"CreatedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"CreatedDate","dataType":"datetime","maxLenght":null,"isRequired":false},{"columnName":"ModifiedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ModifiedDate","dataType":"datetime","maxLenght":null,"isRequired":false}]}
127
* configure continueOnStepFailure = true
0
128
Then status 200
0
129
And def values = response.values
0
130
* configure continueOnStepFailure = true
0
187
* def countyData = karate.jsonPath(values, "$[?(@.CountyId == '" + CountyId + "')]")
0
188
* def countyZone = countyData[0].ZoneNo
0
189
And print countyZone
0
19:21:22.125 [print] 1
190
Given path '/internalapi/api/licensing/renewal/save'
0
191
* def dbSts = db.cleanHeap()
183
192
And header authorization = 'Bearer ' + strToken
0
193
And header Content-Type = 'application/json; charset=utf-8'
0
194
And header Accept = 'application/json; text/plain;*/*'
0
195
And configure continueOnStepFailure = true
0
196
And request {"mainLicenseId":'#(licenseId)',"associated":[],"notQualifiedApplication":'#(notQualifiedApplication)',"NotQualifiedComments":'#(notQlfdAppMessage)'}
0
197
When method Post
168
19:21:22.310 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/renewal/save 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > Content-Length: 108 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"mainLicenseId":"0111-22-129120","associated":[],"notQualifiedApplication":false,"NotQualifiedComments":""} 19:21:22.477 response time in milliseconds: 167 2 < 200 2 < Content-Length: 170 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:51:19 GMT [{"appId":13855,"formId":1167,"childAppId":null,"mainApplicationId":"RE-22-106364-01","childApplicationId":null,"licensePermitTypeId":40,"description":"Restaurant-Beer"}]
198
* configure continueOnStepFailure = true
0
199
Then status 200
0
200
* def description = response[0].description
0
201
* def appId = response[0].appId
0
202
* def formId = response[0].formId
0
203
* def ApplicationId = response[0].mainApplicationId
0
204
And print ApplicationId
0
19:21:22.477 [print] RE-22-106364-01
205
And match ApplicationId contains 'RE-'
0
207
* def currentYear = '-'+getYearFunc()+'-'
1
208
And match ApplicationId contains currentYear
0
442
* call read('RenewalCommonMethods.feature@SaveAssociatedPrincipal') {}
660
>>
karate.UseCases.RenewalCommonMethods
361
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
1
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
464
Given path '/internalapi/api/licensing/app/static/principal/'+appId
0
466
And header Content-Type = 'application/json; charset=utf-8'
0
467
And header Accept = 'application/json; text/plain;*/*'
0
468
And header authorization = 'Bearer ' + strToken
0
469
And request {}
0
470
When method get
175
19:21:22.784 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/13855 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:22.959 response time in milliseconds: 175 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:19 GMT 1 < Content-Length: 1388 {"entities":[],"principals":[{"principalId":3277,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":true,"isFingerprintsApproved":true,"percentageOfOwners":20.0,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","entities":null,"numberOfShares":"","isSignature":false,"isRemove":false,"date":"2022-11-15T00:00:00","convictedOfCrime":"1","title":"15","isLicensed":true,"isAssociated":true,"person":{"personId":5568,"firstName":"Automation20221115192100","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T00:00:00","serialNo":0,"age":0,"choosedEntity":[]},"address":{"addressId":29325,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25237,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
471
Then status 200
0
472
* def personResponse = response
0
473
* def principalId = personResponse.principals[0].principalId
0
474
* def personId = personResponse.principals[0].person.personId
0
475
* def licFirstName = personResponse.principals[0].person.firstName
0
476
* def licLastName = personResponse.principals[0].person.lastName
0
477
* def licCommID = personResponse.principals[0].communication.id
0
478
* def licEmailID = personResponse.principals[0].communication.email
0
479
* def licAddressId = personResponse.principals[0].address.addressId
0
480
Given path '/internalapi/api/licensing/app/static/principal/save/'+appId
0
482
And header Content-Type = 'application/json; charset=utf-8'
0
483
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
492
* def prncipalName = 'AutoRenewal'+getDate1()
1
494
And header Accept = 'application/json; text/plain;*/*'
0
495
And header authorization = 'Bearer ' + strToken
0
498
And request {"entities":[],"principals":[{"principalId":'#(principalId)',"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":true,\"isNewPrincipal\":false}","entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":'#(personId)',"firstName":'#(licFirstName)',"middleName":"","lastName":'#(licLastName)',"suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":null},"address":{"addressId":'#(licAddressId)',"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":'#(licCommID)',"email":'#(licEmailID)',"confirmEmail":'#(licEmailID)',"phones":[]}},{"principalId":0,"convictedOfCrime":"","percentageOfOwners":"","isFingerprintRequired":"","isFingerprintsApproved":"","title":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"Test Address1","addressLine2":"","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":'#(licEmailID)',"confirmEmail":'#(licEmailID)'},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
0
499
When method post
181
19:21:22.961 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/save/13855 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 2220 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"entities":[],"principals":[{"principalId":3277,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":true,\"isNewPrincipal\":false}","entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":5568,"firstName":"Automation20221115192100","middleName":"","lastName":"AutoLastName","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":null},"address":{"addressId":29325,"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25237,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}},{"principalId":0,"convictedOfCrime":"","percentageOfOwners":"","isFingerprintRequired":"","isFingerprintsApproved":"","title":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"Test Address1","addressLine2":"","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":"automation@svam.com","confirmEmail":"automation@svam.com"},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]} 19:21:23.142 response time in milliseconds: 181 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:51:20 GMT 2 < Content-Length: 2326 {"entities":[],"principals":[{"principalId":3277,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":null,"entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":5568,"firstName":"Automation20221115192100","middleName":"","lastName":"AutoLastName","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":[]},"address":{"addressId":29325,"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25237,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}},{"principalId":3278,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":null,"entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":[]},"address":{"addressId":0,"appId":null,"addressLine1":"Test Address1","addressLine2":"","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":0,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
500
Then status 200
0
443
* call read('RenewalCommonMethods.feature@Fee_Check') {}
505
>>
karate.UseCases.RenewalCommonMethods
274
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
0
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
504
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
505
* def totalFees = licenseFees + fillingFees
0
506
And print totalFees
0
19:21:23.375 [print] 1060.0
507
And header Content-Type = 'application/json; charset=utf-8'
0
508
And header Accept = 'application/json; text/plain;*/*'
0
509
And header authorization = 'Bearer ' + strToken
0
510
And request {}
0
511
When method get
272
19:21:23.375 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13855 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:23.646 response time in milliseconds: 270 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:20 GMT 1 < Content-Length: 655 [{"licenseName":"Restaurant - Beer","applicationId":"RE-22-106364-01","applicationTypeId":2,"appFeesId":0,"appId":13855,"feesRefId":6042,"initialFees":0.0,"licensingFees":480.00,"amendmentFees":0.0,"renewalFees":30.00,"totalFees":0.0,"filingFees":0.0,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
512
Then status 200
0
513
And def serverResponse = response
0
514
* def licTerm = serverResponse[0].term
0
515
* def licFees = serverResponse[0].licensingFees+''
0
516
* def licTermDesc = serverResponse[0].termDesc
0
517
* def licFeesRefId = serverResponse[0].feesRefId
0
519
* def licAncillaryFees = serverResponse[0].ancillaryFees+''
0
520
* def licfilingFees = serverResponse[0].filingFees+''
0
521
* def licInitialFees = serverResponse[0].initialFees
0
522
* def licRenewalFees = serverResponse[0].renewalFees
0
444
* match licRenewalFees == 30
0
445
* call read('RenewalCommonMethods.feature@RenewalLicFillingFee') {}
2058
>>
karate.UseCases.RenewalCommonMethods
1793
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
1
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
673
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
1
674
* def totalFees = licenseFees + fillingFees
0
675
And print totalFees
0
19:21:23.914 [print] 1060
676
And header Content-Type = 'application/json; charset=utf-8'
0
677
And header Accept = 'application/json; text/plain;*/*'
0
678
And header authorization = 'Bearer ' + strToken
0
679
And request {}
0
680
When method get
260
19:21:23.914 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13855 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:24.173 response time in milliseconds: 259 1 < 200 1 < Content-Length: 655 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:21 GMT [{"licenseName":"Restaurant - Beer","applicationId":"RE-22-106364-01","applicationTypeId":2,"appFeesId":0,"appId":13855,"feesRefId":6042,"initialFees":0.0,"licensingFees":480.00,"amendmentFees":0.0,"renewalFees":30.00,"totalFees":0.0,"filingFees":0.0,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
681
Then status 200
0
682
And def serverResponse = response
0
683
* def licTerm = serverResponse[0].term
0
684
* def licFees = serverResponse[0].licensingFees+''
0
685
* def licTermDesc = serverResponse[0].termDesc
0
686
* def licFeesRefId = serverResponse[0].feesRefId
0
688
* def licAncillaryFees = serverResponse[0].ancillaryFees+''
0
689
* def licfilingFees = serverResponse[0].filingFees+''
0
690
* def licInitialFees = serverResponse[0].initialFees
0
# And def totalFees = licInitialFees+licfilingFees+licAncillaryFees
#And print totalFees
697
Given path '/internalapi/api/notification/SaveNotification'
0
699
And header Content-Type = 'application/json; charset=utf-8'
0
700
And header Accept = 'application/json; text/plain;*/*'
0
701
And header authorization = 'Bearer ' + strToken
0
702
And request {"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}
0
703
When method post
148
19:21:24.174 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/notification/SaveNotification 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 2006 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13855,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13855,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13855,"createdBy":"Tarun Gupta"} 19:21:24.322 response time in milliseconds: 148 2 < 200 2 < Content-Length: 5 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:51:21 GMT false
704
Then status 200
0
705
And print response
0
19:21:24.323 [print] false
710
Given path 'internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
711
And header Content-Type = 'application/json; charset=utf-8'
0
712
* def futureDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
726
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
735
* def date = getDate2()
1
736
* def futureDate = futureDateFunc()
1
737
And header Accept = 'application/json; text/plain;*/*'
0
738
And header authorization = 'Bearer ' + strToken
0
740
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":40000}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":'#(renewalFees1)',"totalFees":'#(totalFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":false,"isBondRequired":false,"bondFee":0,"term":'#(licTerm)',"termDesc":'#(licTermDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-03-31T00:00:00.000Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
0
741
When method post
217
19:21:24.325 request: 3 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13855/false 3 > Content-Type: application/json; charset=utf-8 3 > Accept: application/json; text/plain;*/* 3 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 3 > Content-Length: 5059 3 > Host: slaleapqaapi.svam.com 3 > Connection: Keep-Alive 3 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 3 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13855,"slaintakeDate":"2022-11-15T19:21:24.323Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:21:24.323Z","amount":40000}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"RE-22-106364-01","applicationTypeId":1,"appFeesId":0,"appId":13855,"feesRefId":6042,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"30","totalFees":1060,"filingFees":"0","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":1060,"amountReceived":"0.00","waivedComment":null,"isBondReceived":false,"isBondRequired":false,"bondFee":0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-03-31T00:00:00.000Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13855,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13855,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13855,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13855,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13855,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13855,"createdBy":"Tarun Gupta"},"taskId":null} 19:21:24.541 response time in milliseconds: 216 3 < 200 3 < Content-Length: 4 3 < Content-Type: application/json; charset=utf-8 3 < Server: Microsoft-IIS/10.0 3 < Strict-Transport-Security: max-age=2592000 3 < X-Powered-By: ASP.NET 3 < Date: Tue, 15 Nov 2022 13:51:21 GMT true
742
Then status 200
0
744
Given path 'internalapi/api/licensing/fees/check-payments/get/'+appId
0
745
And header authorization = 'Bearer ' + strToken
0
746
And request {}
0
747
When method get
183
19:21:24.542 request: 4 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/check-payments/get/13855 4 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 4 > Content-Type: application/json; charset=UTF-8 4 > Content-Length: 2 4 > Host: slaleapqaapi.svam.com 4 > Connection: Keep-Alive 4 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 4 > Accept-Encoding: gzip,deflate {} 19:21:24.725 response time in milliseconds: 183 4 < 200 4 < Content-Type: application/json; charset=utf-8 4 < Server: Microsoft-IIS/10.0 4 < Strict-Transport-Security: max-age=2592000 4 < X-Powered-By: ASP.NET 4 < Date: Tue, 15 Nov 2022 13:51:21 GMT 4 < Content-Length: 443 [{"checkDetailId":2336,"appId":13855,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T00:00:00","slaintakeDate":"2022-11-15T00:00:00","amount":40000.0000,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T08:51:21.847","modifiedBy":null,"modifiedDate":null}]
748
Then status 200
0
749
And def checkDetailId = response[0].checkDetailId
0
750
And print checkDetailId
0
19:21:24.725 [print] 2336
752
Given path '/internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
753
And header Content-Type = 'application/json; charset=utf-8'
0
754
* def futureDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
765
* def futureDate = futureDateFunc()
1
766
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
775
* def date = getDate2()
0
777
And header Accept = 'application/json; text/plain;*/*'
0
778
And header authorization = 'Bearer ' + strToken
0
779
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":'#(totalFees)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":'#(licInitialFees)',"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":'#(renewalFees1)',"totalFees":'#(totalFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":'#(licAncillaryFees)',"isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":false,"isBondRequired":false,"bondFee":0,"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(futureDate)',"emailNotificationDetail":{"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
0
782
When method post
216
19:21:24.729 request: 5 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13855/false 5 > Content-Type: application/json; charset=utf-8 5 > Accept: application/json; text/plain;*/* 5 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 5 > Content-Length: 5055 5 > Host: slaleapqaapi.svam.com 5 > Connection: Keep-Alive 5 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 5 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13855,"slaintakeDate":"2022-11-15T19:21:24.728Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:21:24.728Z","amount":1060}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"RE-22-106364-01","applicationTypeId":1,"appFeesId":0,"appId":13855,"feesRefId":6042,"initialFees":0.0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"30","totalFees":1060,"filingFees":"0","ancillaryFees":"0","isFeesWaived":false,"underPaymentAmount":1060,"amountReceived":"0.00","waivedComment":null,"isBondReceived":false,"isBondRequired":false,"bondFee":0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-12-15T19:21:24.727Z","emailNotificationDetail":{"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13855,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13855,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13855,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13855,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13855,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13855,"createdBy":"Tarun Gupta"},"taskId":null} 19:21:24.944 response time in milliseconds: 215 5 < 200 5 < Content-Length: 4 5 < Content-Type: application/json; charset=utf-8 5 < Server: Microsoft-IIS/10.0 5 < Strict-Transport-Security: max-age=2592000 5 < X-Powered-By: ASP.NET 5 < Date: Tue, 15 Nov 2022 13:51:21 GMT true
783
Then status 200
0
# ********* SAVE Application Details To Save *********************
787
Given path '/internalapi/api/licensing/app/save'
0
788
And header authorization = 'Bearer ' + strToken
0
789
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":'#(appId)',"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
1
790
When method post
291
19:21:24.948 request: 6 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 6 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 6 > Content-Type: application/json; charset=UTF-8 6 > Content-Length: 30720 6 > Host: slaleapqaapi.svam.com 6 > Connection: Keep-Alive 6 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 6 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13855,"formID":1167,"applicationID":"RE-22-106364-01","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":13855,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:21:25.237 response time in milliseconds: 289 6 < 200 6 < Content-Length: 49 6 < Content-Type: application/json; charset=utf-8 6 < Server: Microsoft-IIS/10.0 6 < Strict-Transport-Security: max-age=2592000 6 < X-Powered-By: ASP.NET 6 < Date: Tue, 15 Nov 2022 13:51:22 GMT {"appId":13855,"applicationId":"RE-22-106364-01"}
791
Then status 200
0
# ********* Save PAYMENT *********************
796
Given path '/internalapi/api/licensing/fees/details/save/'+appId +'/false'
0
797
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
808
* def slaDate = licFeesDate()
1
809
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
821
* def slaaDate = licDate()
0
822
* def licInitialFees1 = licInitialFees+''
0
823
And print licInitialFees1
0
19:21:25.239 [print] 0
824
* def renewalFees1 = renewalFees+''
0
825
And print renewalFees1
0
19:21:25.239 [print] 30
826
* def totalFees1 = totalFees+''
0
828
And print totalFees1
0
19:21:25.239 [print] 1060
829
* def licAncillaryFees1 = licAncillaryFees+''
0
830
* def licfilingFees1 = licfilingFees+''
0
832
And header authorization = 'Bearer ' + strToken
0
833
And request {"checks":[{"checkDetailId":'#(checkDetailId)',"appId":'#(appId)',"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":'#(date)',"slaintakeDate":'#(date)',"amount":40000,"appliedTo":null,"amountUsed":40000,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-03-24T09:43:00.873","modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":'#(licFeesRefId)',"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":'#(renewalFees1)',"totalFees":'#(totalFees1)',"filingFees":'#(licfilingFees1)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":0,"amountReceived":"40000.00","waivedComment":null,"isBondReceived":false,"isBondRequired":false,"bondFee":0,"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":'#(appId)',"checkDetailId":'#(checkDetailId)',"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":"40000.00","amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":"1970-01-01T00:00:00.000Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
0
# {"checks":[{"checkDetailId":1622,"appId":5856,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-09-23T00:00:00.000Z","slaintakeDate":"2022-09-23T00:00:00.000Z","amount":"100.00","isPaymentFailed":false,"appliedTo":null,"amountUsed":100,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-09-23T13:22:04.11","modifiedBy":null,"modifiedDate":null,"applyClick":true},{"checkDetailId":1623,"appId":5856,"paymentSource":"RDC","checkNo":"2","batchNo":"1","itemNo":"1","slareceivedDate":"2022-09-23T00:00:00.000Z","slaintakeDate":"2022-09-23T00:00:00.000Z","amount":"10.00","isPaymentFailed":false,"appliedTo":null,"amountUsed":10,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-09-23T13:22:04.113","modifiedBy":null,"modifiedDate":null,"applyClick":true}],"appFees":{"appFees":[{"licenseName":"Restaurant - Beer","applicationId":"RE-22-106102-01","applicationTypeId":2,"appFeesId":3976,"appId":5856,"feesRefId":6039,"initialFees":0,"licensingFees":"960.00","am "paymentDetails":[{"appPaymentId":2112,"amountAppliedForApp":"100.00","checkDetailId":1622,"appId":5856,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-09-23T00:00:00","slaintakeDate":"2022-09-23T00:00:00","amount":0,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":null,"createdDate":"2022-09-23T13:21:19.61","modifiedBy":"tgupta@svam.com","modifiedDate":"2022-09-23T13:22:04.06"},{"appPaymentId":2113,"amountAppliedForApp":"10.00","checkDetailId":1623,"appId":5856,"paymentSource":"RDC","checkNo":"2","batchNo":"1","itemNo":"1","slareceivedDate":"2022-09-23T00:00:00","slaintakeDate":"2022-09-23T00:00:00","amount":0,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":null,"createdDate":"2022-09-23T13:21:19.623","modifiedBy":"tgupta@svam.com","modifiedDate":"2022-09-23T13:22:04.07"}],"lateFee":0,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}],"isBondRequired":true,"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":true,"fundDueDate":"2022-09-30T00:00:00.000Z","emailNotificationDetail":{"applicant":{"communicationId":0,"email":"automation@svam.com","appId":5856,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19517,"email":"sbandi@svam.com","appId":5856,"emailContactTypeId":2,"isChecked":true,"roleId":0,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"automation@test.com","appId":5856,"emailContactTypeId":0,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":true,"appId":5856,"notificationTypeId":96}},"notificationDetails":{"applicant":{"communicationId":0,"email":"automation@svam.com","appId":5856,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19517,"email":"sbandi@svam.com","appId":5856,"emailContactTypeId":2,"isChecked":true,"roleId":0,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"automation@test.com","appId":5856,"emailContactTypeId":0,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":true,"appId":5856,"notificationTypeId":96},"taskId":2066}
# {"checks":[{"checkDetailId":1625,"appId":5858,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-09-23T22:56:37.353Z","slaintakeDate":"2022-09-23T22:56:37.353Z","amount":100 ,"appliedTo":null,"amountUsed":100,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-09-23T22:56:37.353,"modifiedBy":null,"modifiedDate":null,"applyClick":true,"{"checkDetailId":1626,"appId":5858,"paymentSource":"RDC","checkNo":"2","batchNo":"1","itemNo":"1","slareceivedDate":"2022-09-23T22:56:37.353Z","slaintakeDate":"2022-09-23T22:56:37.353Z","amount":"10" ,"appliedTo":null,"amountUsed":0 ,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-09-23T22:56:37.353 ,"modifiedBy":null,"modifiedDate":null,"applyClick":true,],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer", "applicationId":"RE-22-106103-01","applicationTypeId":1,"appFeesId":6039,"appId":5858,"feesRefId":6039,"initialFees":0,"licensingFees":960 ,"amendmentFees":"0.00","renewalFees":"0.00","totalFees":"960" ,"filingFees":"0" ,"ancillaryFees":"0" ,"isFeesWaived":false,"underPaymentAmount":0 ,"amountReceived":"10" ,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":5858,"checkDetailId":1625,"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":"100.00","amount":0},{"appId":5858,"checkDetailId":1626,"checkNo":"2","itemNo":"1","batchNo":"1","amountAppliedForApp":"10","amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"isFromReturnedCheck":false,"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":true,"fundDueDate":"2022-09-30T22:56:36.973Z","emailNotificationDetail":{"applicant":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":5858,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":5858,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":5858,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":5858,"createdBy":"Tarun Gupta"},"taskId":null}
836
When method post
212
19:21:25.241 request: 7 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13855/false 7 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 7 > Content-Type: application/json; charset=UTF-8 7 > Content-Length: 5452 7 > Host: slaleapqaapi.svam.com 7 > Connection: Keep-Alive 7 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 7 > Accept-Encoding: gzip,deflate {"checks":[{"checkDetailId":2336,"appId":13855,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T19:21:24.728Z","slaintakeDate":"2022-11-15T19:21:24.728Z","amount":40000,"appliedTo":null,"amountUsed":40000,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-03-24T09:43:00.873","modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"RE-22-106364-01","applicationTypeId":1,"appFeesId":6042,"appId":13855,"feesRefId":6042,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"30","totalFees":"1060","filingFees":"0","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":0,"amountReceived":"40000.00","waivedComment":null,"isBondReceived":false,"isBondRequired":false,"bondFee":0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":13855,"checkDetailId":2336,"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":"40000.00","amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":"1970-01-01T00:00:00.000Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13855,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13855,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13855,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13855,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13855,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13855,"createdBy":"Tarun Gupta"},"taskId":null} 19:21:25.451 response time in milliseconds: 210 7 < 200 7 < Content-Length: 4 7 < Content-Type: application/json; charset=utf-8 7 < Server: Microsoft-IIS/10.0 7 < Strict-Transport-Security: max-age=2592000 7 < X-Powered-By: ASP.NET 7 < Date: Tue, 15 Nov 2022 13:51:22 GMT true
837
Then status 200
0
838
And print response
0
19:21:25.451 [print] true
# ********* SAVE Application Details To Save *********************
843
Given path '/internalapi/api/licensing/app/save'
0
844
And header authorization = 'Bearer ' + strToken
0
845
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":'#(appId)',"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
1
846
When method post
251
19:21:25.456 request: 8 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 8 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 8 > Content-Type: application/json; charset=UTF-8 8 > Content-Length: 30720 8 > Host: slaleapqaapi.svam.com 8 > Connection: Keep-Alive 8 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 8 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13855,"formID":1167,"applicationID":"RE-22-106364-01","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":13855,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:21:25.705 response time in milliseconds: 249 8 < 200 8 < Content-Type: application/json; charset=utf-8 8 < Server: Microsoft-IIS/10.0 8 < Strict-Transport-Security: max-age=2592000 8 < X-Powered-By: ASP.NET 8 < Date: Tue, 15 Nov 2022 13:51:22 GMT 8 < Content-Length: 49 {"appId":13855,"applicationId":"RE-22-106364-01"}
847
Then status 200
0
848
And def serverResponse = response
0
446
* call read('RenewalCommonMethods.feature@Draft_Status_Check') {}
332
>>
karate.UseCases.RenewalCommonMethods
140
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
0
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
0
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
529
Given path '/internalapi/api/application/isApplicationInDraft/'+appId
0
531
And header Content-Type = 'application/json; charset=utf-8'
0
532
And header Accept = 'application/json; text/plain;*/*'
0
533
And header authorization = 'Bearer ' + strToken
0
534
And request {}
0
535
When method get
138
19:21:25.899 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/isApplicationInDraft/13855 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:26.036 response time in milliseconds: 137 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:22 GMT 1 < Content-Length: 4 true
536
Then status 200
0
537
* match response == 'true'
0
Scenario: [4.1:533] TC007_SLA_REN_Intake_Fees_Apply_Payment_to_multiple_Application
ms: 36543
>>
Background:
3
* url BaseURL
0
19:21:26.124 karate.env system property was: svamqa
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* callonce read('LoginDetails.feature') { strToken:'#(strToken)'}
45
8
* def amendmentTypeId = 1
0
9
* def waitFunc =
0
function(timeinMiliSeconds) { // load java type into js engine var Thread = Java.type('java.lang.Thread'); Thread.sleep(timeinMiliSeconds*1000); }
17
* def DueDate =
0
function(numberOfDays){ var date = new Date(); date.setDate(date.getDate() + (numberOfDays)); return date.toString() }
25
* def DueDateCheck = DueDate(7)
1
27
* def getcorporateStructureCodeFunc =
0
function(value){ if (value === 'Individual'){ return 1; } else { return 2; } }
38
* def getStatusIndOrgStatus =
0
function(value){ if (value === 'Individual'){ return true; } else { return false; } }
49
* def getIndORgCodeFunc =
0
function(value1, value2){ if (value1 == 1 && value2 == 'Individual'){ return 1; } else if (value1 == 1 && value2 == 'Sole Propretior'){ return 2; } else if (value1 == 2 && value2 == 'Individual'){ return 1; } else if (value1 == 2 && value2 == 'Limited Liability Company'){ return 2; }else if (value1 == 2 && value2 == 'Corporation'){ return 3; }else if (value1 == 2 && value2 == 'Limited Liability Partnership'){ return 4; }else if (value1 == 2 && value2 == 'Limited Partnership'){ return 5; }else if (value1 == 2 && value2 == 'Partnership'){ return 6; }else if (value1 == 2 && value2 == 'Government'){ return 7; }else if (value1 == 2 && value2 == 'Sole Propretior'){ return 8; }else if (value1 == 2 && value2 == 'Trust'){ return 9; }else if (value1 == 2 && value2 == 'Estate'){ return 10; } else { return 1; } }
87
* def getFundDueDateMMYYDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
99
* def mmyydateFundDueDate = getFundDueDateMMYYDate(7)
2
100
And print mmyydateFundDueDate
0
19:21:26.172 [print] 11/22/2022
102
* def getAmendmentTypeIdFunc =
0
function(amendmentType){ if (amendmentType == 'ABC Officer'){ return 1; } else if (amendmentType == 'Additional Bar'){ return 2; } else if (amendmentType == 'Alteration'){ return 3; } else if (amendmentType == 'Alteration with Additional Bar'){ return 3; } }
121
* def waitFunc =
0
function(timeinMiliSeconds) { // load java type into js engine var Thread = Java.type('java.lang.Thread'); Thread.sleep(timeinMiliSeconds*1000); }
129
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
140
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
151
* def getMMMMDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MMMM dd, yyyy"); var date = new java.util.Date(); return sdf.format(date); }
161
* def mmmmdate = getMMMMDate()
0
163
* def getMMYYDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); return sdf.format(date); }
173
* def mmyydate = getMMYYDate()
0
175
* def getFundDueDateMMYYDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
187
* def mmyydateFundDueDate = getFundDueDateMMYYDate(7)
1
189
* def dateFnc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date( date.getTime() - java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
199
* def dateWithMonthsNameFnc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MMMM dd, yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date( date.getTime()); return sdf.format(dayAfter); }
208
* def dateWithMonthsName = dateWithMonthsNameFnc()
1
209
And print dateWithMonthsName
0
19:21:26.175 [print] November 15, 2022
459
* def IndOrgSelectionDropDown = 'Individual'
0
460
* def indOrgCode = getIndORgCodeFunc(IndOrgSelectionDropDown)
0
461
And print indOrgCode
0
19:21:26.176 [print] 1
462
* def isIndStatus = getStatusIndOrgStatus(IndOrgSelectionDropDown)
0
463
* def CorporateStructureDropDown = 'Individual'
0
464
* def CorporateStructureDropDownCode = getIndORgCodeFunc(indOrgCode,CorporateStructureDropDown)
0
465
And print CorporateStructureDropDownCode
0
19:21:26.177 [print] 1
466
* def firstName = 'Automation'
0
467
* def lastName = 'Automation'
0
468
* def legalName = firstName+ ' '+lastName
0
469
* def Address1 = 'Address1'
0
470
* def Address2 = 'Address2'
0
471
* def CityName = 'New York'
0
472
* def zipCode = '12345'
0
473
* def postalCode = '1234'
0
474
* def countryName = 'United States (US)'
0
475
* def emailId = 'automation@svam.com'
0
476
* def convictedOfCrime = '1'
0
477
* def percentageOfOwners = '20'
0
478
* def isFingerprintRequired = true
0
479
* def isFingerprintsApproved = true
0
480
* def isSignature = true
0
482
* def convictedOfCrime = '1'
0
483
* def PhoneNumber = '999-999-9999'
0
484
* def PhoneExtn = 1234
0
485
* def countryCode = '+91'
0
486
* def stateCode = 40
0
488
* def mainLicensePermitTypeId = 40
0
489
* def termInYears = 3
0
490
* def termDesc = 3+' Year (s)'
0
491
* def licenseFees = 960
0
492
* def fillingFees = 100
0
493
* def licAncillaryFees = 0
0
494
* def renewalFees = 30+''
0
495
* string productName = 'RestaurantBeer'+''
0
497
* def CountyId = 1
0
498
* def CountyName = 'New York'
0
499
* def totalFees = licenseFees+fillingFees+licAncillaryFees
0
500
* def amountPaid = totalFees+''
2
501
* def splittedCityName = CityName.replaceAll(" ","")
0
503
* call read('LicensesCommonMethods.feature@IntakeLicensewithoutAssociatedLic') {}
3011
>>
karate.UseCases.LicensesCommonMethods
2345
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* App Intake *********************
290
* call read('LicensesCommonMethods.feature@GetCountyList') {}
1697
>>
karate.UseCases.LicensesCommonMethods
517
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
117
Given path '/internalapi/api/reference'
0
118
* def dbSts = db.cleanHeap()
362
119
And header authorization = 'Bearer ' + strToken
0
120
And header Content-Type = 'application/json;charset=utf-8'
0
121
And header Accept = 'text/plain'
0
# * def query = {name:countyzone&onlyActives:true}
123
And params {name:countyzone,onlyActives:true}
0
#And param onlyActives='true'
125
And request {}
0
126
When method get
151
19:21:28.351 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/reference?name=countyzone&onlyActives=true 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json;charset=utf-8 1 > Accept: text/plain 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:28.499 response time in milliseconds: 148 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:25 GMT 1 < Content-Length: 11712 {"values":[{"CountyId":1,"County":"New York","ShortName":"NEW","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T00:00:00","ModifiedBy":"esandoval","ModifiedDate":"2020-11-10T11:30:56.047"},{"CountyId":2,"County":"Kings","ShortName":"KING","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":3,"County":"Bronx","ShortName":"BRON","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":4,"County":"Queens","ShortName":"QUEE","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":5,"County":"Richmond","ShortName":"RICH","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":6,"County":"Nassau","ShortName":"NASS","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":7,"County":"Suffolk","ShortName":"SUFF","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":8,"County":"Westchester","ShortName":"WEST","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":9,"County":"Orange","ShortName":"ORAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":10,"County":"Putnam","ShortName":"PUTN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":11,"County":"Rockland","ShortName":"ROCK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":12,"County":"Albany","ShortName":"ALBA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":13,"County":"Clinton","ShortName":"CLIN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":14,"County":"Columbia","ShortName":"COLU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":15,"County":"Dutchess","ShortName":"DUTC","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":16,"County":"Essex","ShortName":"ESSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":17,"County":"Franklin","ShortName":"FRAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":18,"County":"Fulton","ShortName":"FULT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":19,"County":"Greene","ShortName":"GREE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":20,"County":"Hamilton","ShortName":"HAMI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":21,"County":"Montgomery","ShortName":"MONT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":22,"County":"Rensselaer","ShortName":"RENS","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":23,"County":"Saratoga","ShortName":"SARA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":24,"County":"Schenectady","ShortName":"SCHE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":25,"County":"Schoharie","ShortName":"SCHO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":26,"County":"Sullivan","ShortName":"SULL","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":27,"County":"Ulster","ShortName":"ULST","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":28,"County":"Warren","ShortName":"WARR","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":29,"County":"Washington","ShortName":"WASH","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":30,"County":"Allegany","ShortName":"ALLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":31,"County":"Cattaraugus","ShortName":"CATT","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":32,"County":"Chautauqua","ShortName":"CHAU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":33,"County":"Chemung","ShortName":"CHEM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":34,"County":"Erie","ShortName":"ERIE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":35,"County":"Genesee","ShortName":"GENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":36,"County":"Livingston","ShortName":"LIVI","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":37,"County":"Monroe","ShortName":"MONR","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":38,"County":"Niagara","ShortName":"NIAG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":39,"County":"Ontario","ShortName":"ONTA","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":40,"County":"Orleans","ShortName":"ORLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":41,"County":"Schuyler","ShortName":"SCHU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":42,"County":"Seneca","ShortName":"SENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":43,"County":"Steuben","ShortName":"STEU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":44,"County":"Wayne","ShortName":"WAYN","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":45,"County":"Wyoming","ShortName":"WYOM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":46,"County":"Yates","ShortName":"YATE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":47,"County":"Broome","ShortName":"BROO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":48,"County":"Chenango","ShortName":"CHEN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":49,"County":"Cortland","ShortName":"CORT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":50,"County":"Delaware","ShortName":"DELA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":51,"County":"Herkimer","ShortName":"HERK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":52,"County":"Jefferson","ShortName":"JEFF","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":53,"County":"Lewis","ShortName":"LEWI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":54,"County":"Madison","ShortName":"MADI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":55,"County":"Oneida","ShortName":"ONEI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":56,"County":"Onondaga","ShortName":"ONON","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":57,"County":"Oswego","ShortName":"OSWE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":58,"County":"Otsego","ShortName":"OTSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":59,"County":"St. Lawrence","ShortName":"ST L","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":60,"County":"Cayuga","ShortName":"CAYU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":61,"County":"Tioga","ShortName":"TIOG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":62,"County":"Tompkins","ShortName":"TOMP","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.6","ModifiedBy":null,"ModifiedDate":null}],"name":"countyzone","schema":[{"columnName":"CountyId","dataType":"int","maxLenght":null,"isRequired":true},{"columnName":"County","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ShortName","dataType":"nvarchar","maxLenght":10,"isRequired":false},{"columnName":"ZoneNo","dataType":"int","maxLenght":null,"isRequired":false},{"columnName":"IsActive","dataType":"bit","maxLenght":null,"isRequired":false},{"columnName":"CreatedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"CreatedDate","dataType":"datetime","maxLenght":null,"isRequired":false},{"columnName":"ModifiedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ModifiedDate","dataType":"datetime","maxLenght":null,"isRequired":false}]}
127
* configure continueOnStepFailure = true
0
128
Then status 200
0
129
And def values = response.values
0
130
* configure continueOnStepFailure = true
0
291
* def countyData = karate.jsonPath(values, "$[?(@.CountyId == '" + CountyId + "')]")
0
292
* def countyZone = countyData[0].ZoneNo
0
293
And print countyZone
0
19:21:28.524 [print] 1
294
Given path '/internalapi/api/licensing/selectapptype/savenewlicenseapp'
0
295
* def dbSts = db.cleanHeap()
163
296
And header authorization = 'Bearer ' + strToken
0
297
And header Content-Type = 'application/json; charset=utf-8'
0
298
And header Accept = 'application/json; text/plain;*/*'
0
#* def CountysId = <countyIds>
# And print CountysId
#* string CountysName = <countynames>
# And print CountysName
#* def mainLicensePermitTypeId = <LicensePermitTypeId>
# And print mainLicensePermitTypeId
#* string ProductType = <ProductTypes>
#* string LicenseDescription = <LicDescription>
# And print ProductType
309
And request {"mainLicensePermitTypeId":'#(mainLicensePermitTypeId)',"newPermitTypeIds":[],"combinedCraftId":null,"masterFileId":null,"isApplicableForTempPermit":false,"isNotQualified":false,"isChainRestaurant":false,"addBarList":[],"countyId":'#(CountyId)',"isApplicantCurrentLicensed":false,"isExistingManufacturer":false,"selectedLicense":null,"isAssociatedTempPermit":false}
0
311
When method post
166
19:21:28.689 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/selectapptype/savenewlicenseapp 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 327 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"mainLicensePermitTypeId":40,"newPermitTypeIds":[],"combinedCraftId":null,"masterFileId":null,"isApplicableForTempPermit":false,"isNotQualified":false,"isChainRestaurant":false,"addBarList":[],"countyId":1,"isApplicantCurrentLicensed":false,"isExistingManufacturer":false,"selectedLicense":null,"isAssociatedTempPermit":false} 19:21:28.854 response time in milliseconds: 165 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:25 GMT 1 < Content-Length: 234 [{"childAppId":null,"mainApplicationId":"NA-0111-22-119054","childApplicationId":null,"licensePermitTypeId":40,"description":"Restaurant-Beer","parentApplicationId":"NA-0111-22-119054","parentAppId":13856,"appId":13856,"formId":1165}]
312
* configure continueOnStepFailure = true
0
313
Then status 200
0
315
And def ApplicationId = response[0].mainApplicationId
0
316
And print ApplicationId
0
19:21:28.854 [print] NA-0111-22-119054
317
And match ApplicationId contains 'NA-'
0
319
* def currentYear = '-'+getYearFunc()+'-'+countyZone
0
320
And match ApplicationId contains currentYear
0
321
And def description = response[0].description
0
323
And def appId = response[0].appId
0
325
* def formId = response[0].formId
0
326
* def FormVersionId = response[0].FormVersionId
0
328
Given path '/internalapi/api/application/preview/'+appId
0
329
* def dbSts = db.cleanHeap()
165
330
And header authorization = 'Bearer ' + strToken
0
331
And header Content-Type = 'application/json; charset=utf-8'
0
332
And header Accept = 'application/json; text/plain;*/*'
0
333
And configure continueOnStepFailure = true
0
334
And request {}
0
335
When method get
149
19:21:29.021 request: 2 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13856 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > Content-Length: 2 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {} 19:21:29.169 response time in milliseconds: 148 2 < 200 2 < Content-Length: 185 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:51:25 GMT {"applicationId":"NA-0111-22-119054","submitDate":null,"licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Draft"},"isLicenseApplication":true,"isPreFilled":false}
336
* configure continueOnStepFailure = true
0
337
Then status 200
0
338
And def licStatus = response.appStatus.statusDescription
0
339
And print licStatus
0
19:21:29.169 [print] Draft
340
And match licStatus == 'Draft'
0
504
* def CountyName = "New York"
0
505
* call read('LicensesCommonMethods.feature@FillAndSaveApplicantInformationPage') {county:'#(CountyName)'}
737
>>
karate.UseCases.LicensesCommonMethods
201
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
700
* def getDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
709
Given path '/internalapi/api/licensing/app/static/applicantinfo/save/'+appId
0
710
And header Content-Type = 'application/json; charset=utf-8'
0
712
* def autoFirstName = firstName + getDate()
0
713
* def legalName = autoFirstName + lastName
0
714
And header Accept = 'application/json; text/plain;*/*'
0
715
And header authorization = 'Bearer ' + strToken
0
716
And request {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":'#(indOrgCode)',"corporateStructure":'#(CorporateStructureDropDownCode)',"firstName":'#(autoFirstName)',"lastName":'#(lastName)',"middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":'#(legalName)',"id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":'#(IndOrgSelectionDropDown)',"corporateStructureText":'#(CorporateStructureDropDown)',"isIndividual":'#(isIndStatus)'},"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"2","phoneTypeText":"Office","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}}
0
717
When method post
198
19:21:29.714 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/applicantinfo/save/13856 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2167 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":1,"corporateStructure":1,"firstName":"Automation20221115192129","lastName":"Automation","middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":"Automation20221115192129Automation","id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":"Individual","corporateStructureText":"Individual","isIndividual":true},"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"2","phoneTypeText":"Office","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}} 19:21:29.911 response time in milliseconds: 197 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:27 GMT 1 < Content-Length: 2191 {"businessInfo":{"id":0,"website":null,"isLicensed":false,"isAssociated":false,"businessEntity":{"id":3986,"individualOrganization":"1","corporateStructure":1,"isEmployeeForSoleProprietor":null,"firstName":"Automation20221115192129","lastName":"Automation","middleName":"AutoMidName","ssn":"","fein":"","legalName":"Automation20221115192129Automation","suffix":"1","corporateStructureText":"Individual","individualOrganizationText":"Individual","isIndividual":true},"address":{"addressId":29327,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"US","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"NY","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25239,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":7786,"phoneType":3,"countryCode":"91","phone":"999-999-9999","phoneExtension":"1234"}]}},"premisesInfo":{"id":13158,"dba":null,"countyId":1,"countyName":"New York","isDbaSearched":null,"isPremisesRequired":true,"licensePermitID":"","address":{"addressId":29328,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"US","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"NY","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25240,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":7787,"phoneType":2,"countryCode":"+91","phone":"999-999-9999","phoneExtension":"1234"}]}},"applicantDetail":{"id":9750,"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"isPhysicalChange":null,"applicantStatement":{"id":4291,"nameOfApplicant":null,"title":null,"signature":null,"date":null}}}
718
Then status 200
0
506
* call read('LicensesCommonMethods.feature@FillAndSavePrincipalPage') {}
835
>>
karate.UseCases.LicensesCommonMethods
193
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
745
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
754
Given path '/internalapi/api/licensing/app/static/principal/save/'+appId
0
755
And header Content-Type = 'application/json; charset=utf-8'
0
756
* def prncipalName = firstName + getDate1()
0
757
* def dt = licDate()
0
758
And header Accept = 'application/json; text/plain;*/*'
0
759
And header authorization = 'Bearer ' + strToken
0
760
And request {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":'#(convictedOfCrime)',"percentageOfOwners":'#(percentageOfOwners)',"isFingerprintRequired":'#(isFingerprintRequired)',"isFingerprintsApproved":'#(isFingerprintsApproved)',"title":"15","numberOfShares":"","isSignature":false,"date":'#(dt)',"address":{"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"stateId":'#(stateCode)',"county":'#(CountyName)',"city":"New York","zipCode":'#(zipCode)',"zip4":'#(postalCode)',"country":'#(countryName)',"stateName":'#(CityName)',"countryId":229,"zip":'#(zipCode)'},"person":{"personId":0,"firstName":'#(prncipalName)',"middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":'#(dt)',"age":"","choosedEntity":null,"ssnFormat":"","suffixText":"JR"},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":'#(emailId)',"confirmEmail":'#(emailId)'},"titleText":"Vice President","convictedOfCrimeText":"No","disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
0
# {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":"" ,"percentageOfOwners":"" ,"isFingerprintRequired":true ,"isFingerprintsApproved":true ,"title":"","dcjsFingerPrintStatus":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"","addressLine2":"","stateId":40,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"New York","countryId":229,"zip":""},"person":{"personId":0,"firstName":"XA","middleName":"","lastName":"sa","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":null,"confirmEmail":null},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
762
When method post
191
19:21:30.557 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/save/13856 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 1107 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":"1","percentageOfOwners":"20","isFingerprintRequired":true,"isFingerprintsApproved":true,"title":"15","numberOfShares":"","isSignature":false,"date":"2022-11-15T19:21:30.556Z","address":{"addressLine1":"Address1","addressLine2":"Address2","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation20221115192130","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T19:21:30.556Z","age":"","choosedEntity":null,"ssnFormat":"","suffixText":"JR"},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":"automation@svam.com","confirmEmail":"automation@svam.com"},"titleText":"Vice President","convictedOfCrimeText":"No","disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]} 19:21:30.747 response time in milliseconds: 190 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:27 GMT 1 < Content-Length: 1390 {"entities":[],"principals":[{"principalId":3279,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":true,"isFingerprintsApproved":true,"percentageOfOwners":20.0,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","entities":null,"numberOfShares":"","isSignature":false,"isRemove":false,"date":"2022-11-15T00:00:00","convictedOfCrime":"1","title":"15","isLicensed":false,"isAssociated":false,"person":{"personId":5570,"firstName":"Automation20221115192130","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T00:00:00","serialNo":0,"age":0,"choosedEntity":[]},"address":{"addressId":29329,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25241,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
763
Then status 200
0
507
* call read('LicensesCommonMethods.feature@FillAndSaveRepresentativePage') {}
671
>>
karate.UseCases.LicensesCommonMethods
161
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Representative *********************
790
Given path '/internalapi/api/licensing/app/static/rep/save/'+appId
0
791
And header authorization = 'Bearer ' + strToken
0
792
And request {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":'#(CountyName)',"city":'#(CityName)',"zipCode":"10011","country":"United States (US)","stateName":'#(CityName)',"countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""}
0
793
When method post
159
19:21:31.272 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/rep/save/13856 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 897 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":"New York","city":"New York","zipCode":"10011","country":"United States (US)","stateName":"New York","countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""} 19:21:31.431 response time in milliseconds: 159 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:28 GMT 1 < Content-Length: 4 true
794
Then status 200
0
795
And def serverResponse = response
0
508
* call read('LicensesCommonMethods.feature@FillAndSaveMethodOfOperationPage') {}
912
>>
karate.UseCases.LicensesCommonMethods
208
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
1
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
6389
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
6398
Given path '/internalapi/api/licensing/app/save'
0
6399
And header Content-Type = 'application/json; charset=utf-8'
0
6400
* def prncipalName = firstName + getDate1()
1
6401
* def dt = licDate()
0
6402
And header Accept = 'application/json; text/plain;*/*'
0
6403
And header authorization = 'Bearer ' + strToken
0
6404
And request {"isApproved":false,"appId":'#(appId)',"formID":1165,"applicationID":"","formName":"","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":1,"formCategory":{},"formCategoryId":1,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and Policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1993,"key":"","label":"Will the business employ a manager?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1994,"key":"","label":"If no, will the principals manage?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1995,"key":"","label":"If Premises is not a caterer establishment, will the premises periodically close to host private events?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1996,"key":"","label":"If Yes, How Frequently?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"Yes","fieldID":1997,"key":"","label":"Will the premises have music?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1998,"key":"","label":"If Live Music, Give Details","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1999,"key":"","label":"Will the premises use the service of an event promoter?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2000,"key":"","label":"Will the Premises Permit Dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2001,"key":"","label":"Will there be exotic dancing, including but not limited to topless entertainment, pole dancing and or lap dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2002,"key":"","label":"Will there be topless entertainment?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":16,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2003,"key":"","label":"Will Security Personnel be used at the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":17,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2004,"key":"","label":"How many?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":18,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2005,"key":"","label":"Provide your proprietary security guard employer unique Identification number assigned to the business by the NYS Department of State Division of Licensing Services or the name of the security company through which the security personnel will be hired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":19,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2006,"key":"","label":"Provide a detailed plan of supervision for the premises to be licensed. Clearly describe how you will maintain control and order over the licensed premises. How will you monitor alcohol sales and prevent sales to minors and sales to intoxicated persons? How will you handle unruly patrons, altercations, etc., to prevent the premises from becoming disorderly?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":20,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2007,"key":"","label":"Are all responses provided in the application consistent with the information provided to the municipality or community board within the standardized notice form for providing thirty day advance notice","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":21,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2008,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":22,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"4","fieldID":2051,"key":"","label":"If Yes, check all that apply","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2052,"key":"","label":"Who will be permitted to dance?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"Method_of_Operation","key":"0","label":"Method Of Operation","order":11,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isStatic":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"parentSection":"","subSections":[],"sectionFieldOrders":[],"address":{"addressLine1":"","addressLine2":"","stateId":null,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"","countryId":229}}],"formVersionId":1699,"version":25,"licenseDescription":"Restaurant-Beer","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"showAbcOfficer":false,"showCorpChange":false,"showEndorsement":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant_Information","Principal","Representative","Landlord_Identification","Personal_Questionnaire"],"showPQ":true,"showCC":false,"showManuOnPrem":false,"licPermitTypeId":40,"tabVisitied":{"Applicant Information":false,"Principal":false,"Representative":false,"Landlord Identification":false,"Personal Questionnaire":false}}
1
6406
When method post
201
19:21:32.143 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 12993 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13856,"formID":1165,"applicationID":"","formName":"","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":1,"formCategory":{},"formCategoryId":1,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and Policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1993,"key":"","label":"Will the business employ a manager?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1994,"key":"","label":"If no, will the principals manage?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1995,"key":"","label":"If Premises is not a caterer establishment, will the premises periodically close to host private events?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1996,"key":"","label":"If Yes, How Frequently?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"Yes","fieldID":1997,"key":"","label":"Will the premises have music?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1998,"key":"","label":"If Live Music, Give Details","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1999,"key":"","label":"Will the premises use the service of an event promoter?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2000,"key":"","label":"Will the Premises Permit Dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2001,"key":"","label":"Will there be exotic dancing, including but not limited to topless entertainment, pole dancing and or lap dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2002,"key":"","label":"Will there be topless entertainment?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":16,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2003,"key":"","label":"Will Security Personnel be used at the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":17,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2004,"key":"","label":"How many?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":18,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2005,"key":"","label":"Provide your proprietary security guard employer unique Identification number assigned to the business by the NYS Department of State Division of Licensing Services or the name of the security company through which the security personnel will be hired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":19,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2006,"key":"","label":"Provide a detailed plan of supervision for the premises to be licensed. Clearly describe how you will maintain control and order over the licensed premises. How will you monitor alcohol sales and prevent sales to minors and sales to intoxicated persons? How will you handle unruly patrons, altercations, etc., to prevent the premises from becoming disorderly?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":20,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2007,"key":"","label":"Are all responses provided in the application consistent with the information provided to the municipality or community board within the standardized notice form for providing thirty day advance notice","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":21,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2008,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":22,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"4","fieldID":2051,"key":"","label":"If Yes, check all that apply","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2052,"key":"","label":"Who will be permitted to dance?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"Method_of_Operation","key":"0","label":"Method Of Operation","order":11,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isStatic":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"parentSection":"","subSections":[],"sectionFieldOrders":[],"address":{"addressLine1":"","addressLine2":"","stateId":null,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"","countryId":229}}],"formVersionId":1699,"version":25,"licenseDescription":"Restaurant-Beer","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"showAbcOfficer":false,"showCorpChange":false,"showEndorsement":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant_Information","Principal","Representative","Landlord_Identification","Personal_Questionnaire"],"showPQ":true,"showCC":false,"showManuOnPrem":false,"licPermitTypeId":40,"tabVisitied":{"Applicant Information":false,"Principal":false,"Representative":false,"Landlord Identification":false,"Personal Questionnaire":false}} 19:21:32.339 response time in milliseconds: 195 1 < 200 1 < Content-Length: 51 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:28 GMT {"appId":13856,"applicationId":"NA-0111-22-119054"}
6407
Then status 200
0
509
* call read('LicensesCommonMethods.feature@FeesValidation') {amount:'#(totalFees)'}
5042
>>
karate.UseCases.LicensesCommonMethods
2543
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
3
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
810
* def futureDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
820
* def futureDate = futureDateFunc()
3
822
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
832
* def date = getDate2()
1
834
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
835
And header Content-Type = 'application/json; charset=utf-8'
0
836
And header Accept = 'application/json; text/plain;*/*'
0
837
And header authorization = 'Bearer ' + strToken
0
838
And request {}
0
839
When method get
253
19:21:34.843 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13856 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:35.093 response time in milliseconds: 249 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:32 GMT 1 < Content-Length: 658 [{"licenseName":"Restaurant - Beer","applicationId":"NA-0111-22-119054","applicationTypeId":1,"appFeesId":0,"appId":13856,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":0.0,"totalFees":0.0,"filingFees":100.00,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
840
Then status 200
0
841
And def serverResponse = response
0
842
* def licTerm = serverResponse[0].term
0
843
* def licFees = serverResponse[0].licensingFees+''
0
844
* def licTermDesc = serverResponse[0].termDesc
0
845
* def licFeesRefId = serverResponse[0].feesRefId
0
846
* def licAncillaryFees = serverResponse[0].ancillaryFees+''
1
847
* def licfilingFees = serverResponse[0].filingFees+''
0
848
* def licInitialFees = serverResponse[0].initialFees
0
849
* def bndFees = serverResponse[0].bondFee
0
850
* def isBondRequired = serverResponse[0].isBondRequired
0
851
And def totalFees = serverResponse[0].licensingFees+serverResponse[0].filingFees
0
852
And print totalFees
0
19:21:35.098 [print] 1060.0
855
Given path '/internalapi/api/notification/SaveNotification'
0
857
And header Content-Type = 'application/json; charset=utf-8'
0
858
And header Accept = 'application/json; text/plain;*/*'
0
859
And header authorization = 'Bearer ' + strToken
0
860
And request {"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}
0
861
When method post
195
19:21:35.101 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/notification/SaveNotification 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 2006 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13856,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13856,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13856,"createdBy":"Tarun Gupta"} 19:21:35.294 response time in milliseconds: 193 2 < 200 2 < Content-Length: 5 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:51:32 GMT false
862
Then status 200
0
863
And print response
0
19:21:35.294 [print] false
# And header Content-Type = 'application/json; charset=utf-8'
869
Given path 'internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
871
And header Accept = 'application/json; text/plain;*/*'
0
872
And header authorization = 'Bearer ' + strToken
0
874
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":'#(amount)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":"0.00","totalFees":'#(totalFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(licTerm)',"termDesc":'#(licTermDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
1
875
When method post
273
19:21:35.299 request: 3 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13856/false 3 > Accept: application/json; text/plain;*/* 3 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 3 > Content-Type: application/json; charset=UTF-8 3 > Content-Length: 5071 3 > Host: slaleapqaapi.svam.com 3 > Connection: Keep-Alive 3 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 3 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13856,"slaintakeDate":"2022-11-15T19:21:34.840Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:21:34.840Z","amount":1060}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119054","applicationTypeId":1,"appFeesId":0,"appId":13856,"feesRefId":6039,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"0.00","totalFees":1060.0,"filingFees":"100","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":1060.0,"amountReceived":"0.00","waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-11-22T19:21:34.830Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13856,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13856,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13856,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13856,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13856,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13856,"createdBy":"Tarun Gupta"},"taskId":null} 19:21:35.571 response time in milliseconds: 271 3 < 200 3 < Content-Type: application/json; charset=utf-8 3 < Server: Microsoft-IIS/10.0 3 < Strict-Transport-Security: max-age=2592000 3 < X-Powered-By: ASP.NET 3 < Date: Tue, 15 Nov 2022 13:51:32 GMT 3 < Content-Length: 4 true
876
Then status 200
0
878
Given path 'internalapi/api/licensing/fees/check-payments/get/'+appId
0
879
And header authorization = 'Bearer ' + strToken
0
880
And request {}
0
881
When method get
190
19:21:35.575 request: 4 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/check-payments/get/13856 4 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 4 > Content-Type: application/json; charset=UTF-8 4 > Content-Length: 2 4 > Host: slaleapqaapi.svam.com 4 > Connection: Keep-Alive 4 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 4 > Accept-Encoding: gzip,deflate {} 19:21:35.762 response time in milliseconds: 187 4 < 200 4 < Content-Length: 442 4 < Content-Type: application/json; charset=utf-8 4 < Server: Microsoft-IIS/10.0 4 < Strict-Transport-Security: max-age=2592000 4 < X-Powered-By: ASP.NET 4 < Date: Tue, 15 Nov 2022 13:51:32 GMT [{"checkDetailId":2337,"appId":13856,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T00:00:00","slaintakeDate":"2022-11-15T00:00:00","amount":1060.0000,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T08:51:32.867","modifiedBy":null,"modifiedDate":null}]
882
Then status 200
0
883
And def checkDetailId = response[0].checkDetailId
0
884
And print checkDetailId
0
19:21:35.762 [print] 2337
885
* def amount = response[0].amount
0
886
* def underpaidAmount = totalFees-amount
0
888
And print 'underpaidAmount- ',underpaidAmount
0
19:21:35.763 [print] underpaidAmount- 0.0
890
Given path '/internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
891
And header Content-Type = 'application/json; charset=utf-8'
0
892
* def futureDateFunc =
1
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
903
* def futureDate = futureDateFunc()
2
904
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
913
* def date = getDate2()
0
915
And header Accept = 'application/json; text/plain;*/*'
0
916
And header authorization = 'Bearer ' + strToken
0
917
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":'#(totalFees)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":'#(licInitialFees)',"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":'#(renewalFees)',"totalFees":'#(totalFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":'#(licAncillaryFees)',"isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
1
920
When method post
217
19:21:35.771 request: 5 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13856/false 5 > Content-Type: application/json; charset=utf-8 5 > Accept: application/json; text/plain;*/* 5 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 5 > Content-Length: 5068 5 > Host: slaleapqaapi.svam.com 5 > Connection: Keep-Alive 5 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 5 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13856,"slaintakeDate":"2022-11-15T19:21:35.767Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:21:35.767Z","amount":1060.0}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119054","applicationTypeId":1,"appFeesId":0,"appId":13856,"feesRefId":6039,"initialFees":0.0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"30","totalFees":1060.0,"filingFees":"100","ancillaryFees":"0","isFeesWaived":false,"underPaymentAmount":1060.0,"amountReceived":"0.00","waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-11-22T19:21:34.830Z","emailNotificationDetail":{"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13856,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13856,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13856,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13856,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13856,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13856,"createdBy":"Tarun Gupta"},"taskId":null} 19:21:35.985 response time in milliseconds: 214 5 < 200 5 < Content-Length: 4 5 < Content-Type: application/json; charset=utf-8 5 < Server: Microsoft-IIS/10.0 5 < Strict-Transport-Security: max-age=2592000 5 < X-Powered-By: ASP.NET 5 < Date: Tue, 15 Nov 2022 13:51:32 GMT true
921
Then status 200
0
# ********* SAVE Application Details To Save *********************
928
Given path '/internalapi/api/licensing/app/save'
0
929
And header authorization = 'Bearer ' + strToken
0
930
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":'#(CityName)',"fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
2
931
When method post
298
19:21:35.998 request: 6 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 6 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 6 > Content-Type: application/json; charset=UTF-8 6 > Content-Length: 30721 6 > Host: slaleapqaapi.svam.com 6 > Connection: Keep-Alive 6 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 6 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13856,"formID":1165,"applicationID":"NA-0111-22-119054","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:21:36.287 response time in milliseconds: 288 6 < 200 6 < Content-Length: 51 6 < Content-Type: application/json; charset=utf-8 6 < Server: Microsoft-IIS/10.0 6 < Strict-Transport-Security: max-age=2592000 6 < X-Powered-By: ASP.NET 6 < Date: Tue, 15 Nov 2022 13:51:33 GMT {"appId":13856,"applicationId":"NA-0111-22-119054"}
932
Then status 200
0
935
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
936
And header authorization = 'Bearer ' + strToken
0
937
And header Content-Type = 'application/json; charset=utf-8'
0
938
And header Accept = 'application/json; text/plain;*/*'
0
939
And request ""
0
940
When method get
235
19:21:36.292 request: 7 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13856 7 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 7 > Content-Type: application/json; charset=utf-8 7 > Accept: application/json; text/plain;*/* 7 > Content-Length: 0 7 > Host: slaleapqaapi.svam.com 7 > Connection: Keep-Alive 7 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 7 > Accept-Encoding: gzip,deflate 19:21:36.527 response time in milliseconds: 234 7 < 200 7 < Content-Length: 660 7 < Content-Type: application/json; charset=utf-8 7 < Server: Microsoft-IIS/10.0 7 < Strict-Transport-Security: max-age=2592000 7 < X-Powered-By: ASP.NET 7 < Date: Tue, 15 Nov 2022 13:51:33 GMT [{"licenseName":"Restaurant - Beer","applicationId":"NA-0111-22-119054","applicationTypeId":1,"appFeesId":3075,"appId":13856,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":0.0,"totalFees":0.0,"filingFees":100.00,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
941
Then status 200
0
942
And print response[0].appFeesId
0
19:21:36.527 [print] 3075
943
And def appFeesId1 = response[0].appFeesId
0
944
And def feesRefId1 = response[0].feesRefId
0
945
And print appFeesId1
0
19:21:36.528 [print] 3075
946
And print feesRefId1
0
19:21:36.528 [print] 6039
947
And def applicationTypeId = response[0].applicationTypeId
0
948
And print applicationTypeId
0
19:21:36.528 [print] 1
# ********* Save PAYMENT *********************
951
Given path '/internalapi/api/licensing/fees/details/save/'+appId +'/false'
0
953
* def slaDate = licFeesDate()
1
954
* def slaaDate = licDate()
0
955
* def licInitialFees1 = licInitialFees+''
0
956
And print licInitialFees1
0
19:21:36.530 [print] 0
957
* def renewalFees1 = renewalFees+''
0
958
And print renewalFees1
0
19:21:36.530 [print] 30
959
* def totalFees1 = totalFees+''
0
961
And print totalFees1
0
19:21:36.530 [print] 1060
962
* def licAncillaryFees1 = licAncillaryFees+''
0
963
* def licfilingFees1 = licfilingFees+''
0
965
And header authorization = 'Bearer ' + strToken
0
966
And request {"checks":[{"checkDetailId":'#(checkDetailId)',"appId":'#(appId)',"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":'#(date)',"slaintakeDate":'#(date)',"amount":'#(amount)',"appliedTo":null,"amountUsed":'#(amount)',"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":'#(date)',"modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":'#(licFeesRefId)',"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":"0.00","totalFees":'#(totalFees1)',"filingFees":'#(licfilingFees1)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(underpaidAmount)',"amountReceived":'#(amount)',"waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":'#(appId)',"checkDetailId":'#(checkDetailId)',"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":'#(amount)',"amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
1
971
When method post
353
19:21:36.533 request: 8 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13856/false 8 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 8 > Content-Type: application/json; charset=UTF-8 8 > Content-Length: 5458 8 > Host: slaleapqaapi.svam.com 8 > Connection: Keep-Alive 8 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 8 > Accept-Encoding: gzip,deflate {"checks":[{"checkDetailId":2337,"appId":13856,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T19:21:35.767Z","slaintakeDate":"2022-11-15T19:21:35.767Z","amount":1060.0,"appliedTo":null,"amountUsed":1060.0,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T19:21:35.767Z","modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119054","applicationTypeId":1,"appFeesId":6039,"appId":13856,"feesRefId":6039,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"0.00","totalFees":"1060","filingFees":"100","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":1060.0,"waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":13856,"checkDetailId":2337,"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":1060.0,"amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":"2022-11-22T19:21:34.830Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13856,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13856,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13856,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13856,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13856,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13856,"createdBy":"Tarun Gupta"},"taskId":null} 19:21:36.883 response time in milliseconds: 350 8 < 200 8 < Content-Length: 4 8 < Content-Type: application/json; charset=utf-8 8 < Server: Microsoft-IIS/10.0 8 < Strict-Transport-Security: max-age=2592000 8 < X-Powered-By: ASP.NET 8 < Date: Tue, 15 Nov 2022 13:51:33 GMT true
972
Then status 200
0
973
And print response
0
19:21:36.884 [print] true
# ********* SAVE Application Details To Save *********************
978
Given path '/internalapi/api/licensing/app/save'
0
979
And header authorization = 'Bearer ' + strToken
0
980
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":'#(CityName)',"fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
1
981
When method post
499
19:21:36.887 request: 9 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 9 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 9 > Content-Type: application/json; charset=UTF-8 9 > Content-Length: 30721 9 > Host: slaleapqaapi.svam.com 9 > Connection: Keep-Alive 9 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 9 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13856,"formID":1165,"applicationID":"NA-0111-22-119054","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:21:37.384 response time in milliseconds: 497 9 < 200 9 < Content-Length: 51 9 < Content-Type: application/json; charset=utf-8 9 < Server: Microsoft-IIS/10.0 9 < Strict-Transport-Security: max-age=2592000 9 < X-Powered-By: ASP.NET 9 < Date: Tue, 15 Nov 2022 13:51:34 GMT {"appId":13856,"applicationId":"NA-0111-22-119054"}
982
Then status 200
0
983
And def serverResponse = response
0
511
* call read('LicensesCommonMethods.feature@SubmitLicenseAndValidateLicStatus') {expStatus:'Awaiting Review'}
7632
>>
karate.UseCases.LicensesCommonMethods
5502
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
2
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Application SUBMIT *********************
1099
Given path '/internalapi/api/licensing/app/submit'
0
1100
And header authorization = 'Bearer ' + strToken
0
1101
And request {"appId":'#(appId)',"wfType":null}
0
1102
When method post
464
19:21:39.522 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/submit 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 29 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"appId":13856,"wfType":null} 19:21:39.984 response time in milliseconds: 462 1 < 200 1 < Content-Length: 123 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:37 GMT {"success":true,"submittedApps":[{"success":true,"taskId":0,"appId":13856,"applicationId":"NA-0111-22-119054","error":""}]}
1103
Then status 200
0
1104
And def serverResponse = response
0
1105
And match response.success == true
0
1106
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
5031
>>
karate.UseCases.LicensesCommonMethods
3743
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
3
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
3521
1196
And header authorization = 'Bearer ' + strToken
1
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
213
19:21:44.794 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13856 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:45.007 response time in milliseconds: 213 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:42 GMT 1 < Content-Length: 216 {"applicationId":"NA-0111-22-119054","submitDate":"2022-11-15T08:51:37.177","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:21:45.008 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1
512
* call read('LicensesCommonMethods.feature@AssignApplicationsToExaminer') {}
4659
>>
karate.UseCases.LicensesCommonMethods
2237
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* AssignApplicationsSaveDigestDataToExaminer *********************
1139
Given path '/internalapi/api/licensing/examiner/assignApplicationsToExaminer'
0
1140
And header authorization = 'Bearer ' + strToken
0
1141
And request [{"appId":'#(appId)',"examinerId":1069,"priority":"Normal"}]
0
1142
When method post
327
19:21:47.442 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/examiner/assignApplicationsToExaminer 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 55 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate [{"appId":13856,"examinerId":1069,"priority":"Normal"}] 19:21:47.768 response time in milliseconds: 326 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:45 GMT 1 < Content-Length: 5 false
1143
And def serverResponse = response
0
1144
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
1907
>>
karate.UseCases.LicensesCommonMethods
498
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
1
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
5
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
333
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
155
19:21:49.512 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13856 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:49.665 response time in milliseconds: 153 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:46 GMT 1 < Content-Length: 216 {"applicationId":"NA-0111-22-119054","submitDate":"2022-11-15T08:51:37.177","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:21:49.666 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1
513
* call read('LicensesCommonMethods.feature@ExaminerReviewApprovalToLB') {}
1689
>>
karate.UseCases.LicensesCommonMethods
1127
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Examiner Review Approval to LB *********************
1149
* def summisionDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS"); var date = new java.util.Date(); return sdf.format(date); }
1157
Given path '/internalapi/api/licensing/examiner-review/SaveNewLicense'
0
1158
* def formatedSumbitDate = summisionDate()
0
1159
And header authorization = 'Bearer ' + strToken
0
1160
And header current-wfroleid = 4
0
1161
And request {"isFingerPrintsApproved":false,"isFingerPrintsRequired":false,"isCorpLLCDissolved":false,"isCorpLLCDTaken":false,"isSendPDLetter":false,"isDisable500LB_FBPT":false,"isDisableLBForPD":false,"isDisableLBForCaseClosed":false,"isDisableLateRenewalAndUnderpayment":false,"isLiquidatorPermitHasCompleted":-1,"isSubmit":true,"fieldDeficiencies":[],"masterFileData":[],"combinedCraftData":[],"application":{"applicationCategory":1,"appId":'#(appId)',"applicationId":'#(ApplicationId)',"licePermitTypeId":null,"applicationTypeId":1,"formVersionId":1231,"formId":'#(formId)',"legalName":'#(legalName)',"submitDate":'#(formatedSumbitDate)',"isGISRequired":null,"licenseDescription":'#(description)',"recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":'#(CityName)',"priority":"Normal","expirationDate":null,"appStatusId":3,"taskStatus":"Awaiting Review","taskId":1026,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":true,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":false,"isNotQualified":false,"eventDate":null,"appStatus":{"appStatusId":3,"statusDescription":"Under Review","isActive":true,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":{"appExaminerId":1069,"appId":'#(appId)',"examinerId":1069,"name":null,"assignDate":'#(formatedSumbitDate)',"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"assignAppToLB":null,"licePermitType":{"licPermitTypeId":'#(mainLicensePermitTypeId)',"type":"1","category":"1","product":'#(productName)',"class":null,"description":null,"sectionOfLaw":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isTempPermit":false,"isELicensingPermit":false,"isAdditionalBar":false},"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":'#(mainLicensePermitTypeId)',"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":true,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":'#(formatedSumbitDate)'},"appId":'#(appId)',"notificationTypeId":2028,"applicationType":1,"decisionType":{"name":"Send to Licensing Board","value":2},"emailNotificationModel":{"applicant":{},"attorney":{},"communityBoard":{},"other":{}},"hasErrors":[],"taskId":1026,"newComments":"","recommendedDecisionId":null};
0
1162
When method post
316
19:21:50.243 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/examiner-review/SaveNewLicense 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > current-wfroleid: 4 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 3055 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isFingerPrintsApproved":false,"isFingerPrintsRequired":false,"isCorpLLCDissolved":false,"isCorpLLCDTaken":false,"isSendPDLetter":false,"isDisable500LB_FBPT":false,"isDisableLBForPD":false,"isDisableLBForCaseClosed":false,"isDisableLateRenewalAndUnderpayment":false,"isLiquidatorPermitHasCompleted":-1,"isSubmit":true,"fieldDeficiencies":[],"masterFileData":[],"combinedCraftData":[],"application":{"applicationCategory":1,"appId":13856,"applicationId":"NA-0111-22-119054","licePermitTypeId":null,"applicationTypeId":1,"formVersionId":1231,"formId":1165,"legalName":"Automation20221115192129Automation","submitDate":"2022-11-15T19:21:50.241","isGISRequired":null,"licenseDescription":"Restaurant-Beer","recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":"New York","priority":"Normal","expirationDate":null,"appStatusId":3,"taskStatus":"Awaiting Review","taskId":1026,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":true,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":false,"isNotQualified":false,"eventDate":null,"appStatus":{"appStatusId":3,"statusDescription":"Under Review","isActive":true,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":{"appExaminerId":1069,"appId":13856,"examinerId":1069,"name":null,"assignDate":"2022-11-15T19:21:50.241","isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"assignAppToLB":null,"licePermitType":{"licPermitTypeId":40,"type":"1","category":"1","product":"RestaurantBeer","class":null,"description":null,"sectionOfLaw":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isTempPermit":false,"isELicensingPermit":false,"isAdditionalBar":false},"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":40,"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":true,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":"2022-11-15T19:21:50.241"},"appId":13856,"notificationTypeId":2028,"applicationType":1,"decisionType":{"name":"Send to Licensing Board","value":2},"emailNotificationModel":{"applicant":{},"attorney":{},"communityBoard":{},"other":{}},"hasErrors":[],"taskId":1026,"newComments":"","recommendedDecisionId":null} 19:21:50.557 response time in milliseconds: 314 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:46 GMT 1 < Content-Length: 4 true
1163
Then status 200
0
1164
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
808
>>
karate.UseCases.LicensesCommonMethods
308
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
150
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
156
19:21:51.204 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13856 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:51.360 response time in milliseconds: 156 1 < 200 1 < Content-Length: 216 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:48 GMT {"applicationId":"NA-0111-22-119054","submitDate":"2022-11-15T08:51:37.177","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:21:51.360 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
0
514
* call read('LicensesCommonMethods.feature@LBClaimingQueue') {}
1393
>>
karate.UseCases.LicensesCommonMethods
904
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* LB Claiming Queue *********************
1249
Given path 'internalapi/api/licensing/claiming-queue/add/'+appId +'/1069'
0
1250
And header authorization = 'Bearer ' + strToken
0
1251
And header current-wfroleid = 5
0
1252
And request {}
0
1253
When method post
154
19:21:51.858 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/claiming-queue/add/13856/1069 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > current-wfroleid: 5 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:52.011 response time in milliseconds: 153 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:48 GMT 1 < Content-Length: 4 true
1254
Then status 200
0
1255
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
748
>>
karate.UseCases.LicensesCommonMethods
327
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
168
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
154
19:21:52.600 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13856 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:52.754 response time in milliseconds: 154 1 < 200 1 < Content-Length: 216 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:50 GMT {"applicationId":"NA-0111-22-119054","submitDate":"2022-11-15T08:51:37.177","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:21:52.754 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
0
515
* def expirationDate = fundDueDateFunc(10)
1
516
* call read('LicensesCommonMethods.feature@LBApprovalWithDueDate') {approvalName:'Approved', expStatus:'Approved'}
2073
>>
karate.UseCases.LicensesCommonMethods
1619
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* LB Approval *********************
2346
Given path '/internalapi/api/licensing/search/GetEmailNotificationByAppIdAndNotificationTypeId/'+appId+'/0'
0
2347
And header authorization = 'Bearer ' + strToken
0
2348
And request ''
0
2349
When method get
181
19:21:53.215 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/search/GetEmailNotificationByAppIdAndNotificationTypeId/13856/0 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: text/plain; charset=UTF-8 1 > Content-Length: 0 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate 19:21:53.395 response time in milliseconds: 180 1 < 200 1 < Content-Length: 1959 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:50 GMT {"applicant":{"communicationId":25239,"email":"automation@svam.com","appId":13856,"emailContactTypeId":1,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":25242,"email":"sbandi@svam.com","appId":13856,"emailContactTypeId":2,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null}}
2350
Then status 200
0
2351
And def serverResponse = response
0
2352
* def applicantCommId = serverResponse.applicant.communicationId
0
2353
* def attorneyCommId = serverResponse.attorney.communicationId
0
2355
Given path '/internalapi/api/licensing/new-license/saveDecision'
0
2356
And header authorization = 'Bearer ' + strToken
0
2357
And header current-wfroleid = 5
0
2358
* def getSelectedDecisionFunc =
0
function(value1){ if (value1 == 'Approved'){ return 1; } else if (value1 == 'Disapproved'){ return 2; } else if (value1 == 'Disapproval to Counsel'){ return 3; }else if (value1 == 'Withdrawal'){ return 4; }else if (value1 == 'Conditionally Approved'){ return 5; }else if (value1 == 'FB Decision Required'){ return 6; }else if (value1 == 'Return to Examiner'){ return 7; } else { return 1; } }
2384
* def selectedDecisionCode = getSelectedDecisionFunc(approvalName)
0
2385
And print selectedDecisionCode
0
19:21:53.397 [print] 1
2386
And request {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":'#(appId)',"applicationType":1,"applicationId":'#(ApplicationId)',"legalName":'#(legalName)',"statusId":3,"decisionType":{"name":'#(approvalName)',"value":'#(selectedDecisionCode)'},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":'#(effectiveDate)',"expirationDate":'#(expirationDate)',"stipulations":[],"descriptions":[]}}
0
2388
When method post
271
19:21:53.397 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/new-license/saveDecision 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > current-wfroleid: 5 2 > Content-Type: application/json; charset=UTF-8 2 > Content-Length: 2479 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":13856,"applicationType":1,"applicationId":"NA-0111-22-119054","legalName":"Automation20221115192129Automation","statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":"2022-11-15","expirationDate":"2022-11-25T19:21:52.763Z","stipulations":[],"descriptions":[]}} 19:21:53.668 response time in milliseconds: 271 2 < 200 2 < Content-Length: 4 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:51:50 GMT true
2389
Then status 200
0
2390
And def serverResponse = response
0
2391
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
1163
>>
karate.UseCases.LicensesCommonMethods
649
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
502
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
143
19:21:54.679 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13856 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:54.822 response time in milliseconds: 143 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:52 GMT 1 < Content-Length: 209 {"applicationId":"NA-0111-22-119054","submitDate":"2022-11-15T08:51:37.177","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Approved"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:21:54.822 [print] Approved
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1
517
* call read('LicensesCommonMethods.feature@ValidateLicenseApplicationStatus') {LicAppStatus:'Approved'}
731
>>
karate.UseCases.LicensesCommonMethods
234
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1326
Given path 'internalapi/api/GenericSearch/SearchLicense'
0
1327
And header Content-Type = 'application/json; charset=utf-8'
0
1328
And header Accept = 'application/json; text/plain;*/*'
0
1329
And header authorization = 'Bearer ' + strToken
0
1330
And params {page:1,pageSize:10}
0
1331
And request [{"dataTypeValue":"Text","key":"ApplicationId","operatorValue":"=","value":'#(ApplicationId)'}]
0
1332
When method post
230
19:21:55.331 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/GenericSearch/SearchLicense?pageSize=10&page=1 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 96 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate [{"dataTypeValue":"Text","key":"ApplicationId","operatorValue":"=","value":"NA-0111-22-119054"}] 19:21:55.559 response time in milliseconds: 228 1 < 200 1 < Content-Length: 684 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:52 GMT {"data":[{"acaId":13856,"acaType":"application","applicationLicenseId":"0111-22-129121","legacySerialNo":null,"legalName":"Automation20221115192129Automation","dba":null,"licenseDescription":"Restaurant-Beer","expirationDate":"2022-11-25T00:00:00","examinerAssigned":"Tarun Gupta","premisesAddress":"Address1 Address2 New York New York New York 12345 1234 United States (US)","applicantAddress":"Address1 Address2 New York New York New York 12345 1234 United States (US)","feinSsn":"","formId":1165,"applicationId":"NA-0111-22-119054","licenseId":"0111-22-129121","wfRoleId":2,"applicationStatus":"Approved","licenseStatus":"Active"}],"total":1,"aggregateResults":null,"errors":null}
1333
Then status 200
0
1334
And print response
0
19:21:55.560 [print] { "data": [ { "acaId": 13856, "acaType": "application", "applicationLicenseId": "0111-22-129121", "legacySerialNo": null, "legalName": "Automation20221115192129Automation", "dba": null, "licenseDescription": "Restaurant-Beer", "expirationDate": "2022-11-25T00:00:00", "examinerAssigned": "Tarun Gupta", "premisesAddress": "Address1 Address2 New York New York New York 12345 1234 United States (US)", "applicantAddress": "Address1 Address2 New York New York New York 12345 1234 United States (US)", "feinSsn": "", "formId": 1165, "applicationId": "NA-0111-22-119054", "licenseId": "0111-22-129121", "wfRoleId": 2, "applicationStatus": "Approved", "licenseStatus": "Active" } ], "total": 1, "aggregateResults": null, "errors": null }
1335
* match response.data[0].applicationStatus == '#(LicAppStatus)'
1
519
* call read('LicensesCommonMethods.feature@GetLicenseId') {}
678
>>
karate.UseCases.LicensesCommonMethods
173
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
3212
Given path '/internalapi/api/licensing/LBDecision/getLicenseByAppId/' + appId +'/-1'
0
3213
And header authorization = 'Bearer ' + strToken
0
3214
* def EffectiveDate = EffDate()
0
3215
And request {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":'#(appId)',"applicationType":1,"applicationId":'#(ApplicationId)',"legalName":null,"statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":'#(EffectiveDate)',"expirationDate":'#(expiryDate)',"stipulations":[],"descriptions":[]}}
3
3216
When method get
164
19:21:56.069 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/LBDecision/getLicenseByAppId/13856/-1 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 2436 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":13856,"applicationType":1,"applicationId":"NA-0111-22-119054","legalName":null,"statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":"2022-11-15","expirationDate":"#(expiryDate)","stipulations":[],"descriptions":[]}} 19:21:56.231 response time in milliseconds: 162 1 < 200 1 < Content-Length: 2853 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:53 GMT {"license":{"licId":1470,"applicationId":null,"licenseId":"0111-22-129121","licensePermitId":null,"licePermitTypeId":40,"appId":13856,"legacySerialNo":null,"issueDate":null,"expiryDate":"2025-10-31T00:00:00","effectiveDate":"2022-11-15T00:00:00","seasonalStartDate":null,"seasonalEndDate":null,"safeKeepingExpiryDate":null,"status":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"extTempPermitEnabled":false,"application":{"applicationCategory":null,"appId":null,"applicationId":null,"licePermitTypeId":null,"applicationTypeId":null,"formVersionId":null,"formId":null,"legalName":null,"submitDate":null,"isGISRequired":null,"licenseDescription":null,"recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":null,"priority":null,"expirationDate":null,"appStatusId":null,"taskStatus":null,"taskId":null,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":null,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":null,"isNotQualified":null,"eventDate":null,"appStatus":{"appStatusId":0,"statusDescription":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":null,"assignAppToLB":null,"licePermitType":null,"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":0,"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isCaseOpenSameAddress":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"clericalName":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"isFairOrFestival":false,"isShowEffExpDateOnLBReview":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"options":null,"emailNotificationModel":null,"taskOptionsListNested":null,"days":0,"permit":null,"licPermitType":null,"licensePermitMapping":null,"licenseFee":null,"accountBalance":null,"licenseDescription":null,"isSeasonal":false,"isSummerSeasonal":false,"newExpiryDate":null,"amountDue":null,"originalLicenseFee":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"wfRoleId":0},"person":[],"totalRecord":0,"apps":[]}
3217
Then status 200
0
3218
And def serverResponse = response
0
3219
And print serverResponse
1
19:21:56.233 [print] { "license": { "licId": 1470, "applicationId": null, "licenseId": "0111-22-129121", "licensePermitId": null, "licePermitTypeId": 40, "appId": 13856, "legacySerialNo": null, "issueDate": null, "expiryDate": "2025-10-31T00:00:00", "effectiveDate": "2022-11-15T00:00:00", "seasonalStartDate": null, "seasonalEndDate": null, "safeKeepingExpiryDate": null, "status": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null, "extTempPermitEnabled": false, "application": { "applicationCategory": null, "appId": null, "applicationId": null, "licePermitTypeId": null, "applicationTypeId": null, "formVersionId": null, "formId": null, "legalName": null, "submitDate": null, "isGISRequired": null, "licenseDescription": null, "recommendedDecisionId": null, "status500": null, "isApplicableForPDLetter": false, "countyName": null, "priority": null, "expirationDate": null, "appStatusId": null, "taskStatus": null, "taskId": null, "currentWfstatus": null, "communityBoard": null, "isLicenseApplication": null, "currentDueDate": null, "isFinalDeficiency": null, "isHighlyDeficient": null, "isAllDeficienciesMet": null, "pastDueDate": null, "memo": null, "isOneTimePermit": null, "dueDateAction": null, "isDisapprovedForCause": null, "isNotQualified": null, "eventDate": null, "appStatus": { "appStatusId": 0, "statusDescription": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null }, "applicationType": null, "assignAppExaminer": null, "assignAppToLB": null, "licePermitType": null, "assoApplicationList": [ ], "isTempPermit": null, "isTempOrLiq": false, "licPermitTypeId": 0, "isAssociatedLicense": null, "effectiveDate": null, "assignedUserId": null, "amendmentTypeId": null, "amendmentType": null, "disapprovedDate": null, "condApprovedDate": null, "addressId": null, "isCaseOpen": null, "isClosed": null, "isCaseOpenSameAddress": null, "isSpecialEventPlusFour": null, "isSpecialEventInsideFiveBoroughs": null, "licStatus": null, "createdBy": null, "clericalName": null, "licenseId": null, "address": null, "isNybeApp": false, "isHearingCompleted": null, "does500FtHearingExist": null, "parentAppStatus": null, "premisesAppCount": 0, "statusDescription": null, "eventAddress": null, "isFairOrFestival": false, "isShowEffExpDateOnLBReview": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskRoleId": 0, "taskDecision": null, "isActive": null, "createdDate": null, "modifiedBy": null, "wfRoleId": 0, "modifiedDate": null }, "options": null, "emailNotificationModel": null, "taskOptionsListNested": null, "days": 0, "permit": null, "licPermitType": null, "licensePermitMapping": null, "licenseFee": null, "accountBalance": null, "licenseDescription": null, "isSeasonal": false, "isSummerSeasonal": false, "newExpiryDate": null, "amountDue": null, "originalLicenseFee": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskId": null, "taskRoleId": 0, "taskDecision": null, "wfRoleId": 0 }, "person": [ ], "totalRecord": 0, "apps": [ ] }
3220
And def licId = serverResponse.license.licId
0
3221
And def licenseId = serverResponse.license.licenseId
0
3222
And def ActEffDate = serverResponse.license.seasonalStartDate
0
3223
And def ActExpDate = serverResponse.license.expiryDate
0
3224
And print serverResponse
1
19:21:56.235 [print] { "license": { "licId": 1470, "applicationId": null, "licenseId": "0111-22-129121", "licensePermitId": null, "licePermitTypeId": 40, "appId": 13856, "legacySerialNo": null, "issueDate": null, "expiryDate": "2025-10-31T00:00:00", "effectiveDate": "2022-11-15T00:00:00", "seasonalStartDate": null, "seasonalEndDate": null, "safeKeepingExpiryDate": null, "status": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null, "extTempPermitEnabled": false, "application": { "applicationCategory": null, "appId": null, "applicationId": null, "licePermitTypeId": null, "applicationTypeId": null, "formVersionId": null, "formId": null, "legalName": null, "submitDate": null, "isGISRequired": null, "licenseDescription": null, "recommendedDecisionId": null, "status500": null, "isApplicableForPDLetter": false, "countyName": null, "priority": null, "expirationDate": null, "appStatusId": null, "taskStatus": null, "taskId": null, "currentWfstatus": null, "communityBoard": null, "isLicenseApplication": null, "currentDueDate": null, "isFinalDeficiency": null, "isHighlyDeficient": null, "isAllDeficienciesMet": null, "pastDueDate": null, "memo": null, "isOneTimePermit": null, "dueDateAction": null, "isDisapprovedForCause": null, "isNotQualified": null, "eventDate": null, "appStatus": { "appStatusId": 0, "statusDescription": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null }, "applicationType": null, "assignAppExaminer": null, "assignAppToLB": null, "licePermitType": null, "assoApplicationList": [ ], "isTempPermit": null, "isTempOrLiq": false, "licPermitTypeId": 0, "isAssociatedLicense": null, "effectiveDate": null, "assignedUserId": null, "amendmentTypeId": null, "amendmentType": null, "disapprovedDate": null, "condApprovedDate": null, "addressId": null, "isCaseOpen": null, "isClosed": null, "isCaseOpenSameAddress": null, "isSpecialEventPlusFour": null, "isSpecialEventInsideFiveBoroughs": null, "licStatus": null, "createdBy": null, "clericalName": null, "licenseId": null, "address": null, "isNybeApp": false, "isHearingCompleted": null, "does500FtHearingExist": null, "parentAppStatus": null, "premisesAppCount": 0, "statusDescription": null, "eventAddress": null, "isFairOrFestival": false, "isShowEffExpDateOnLBReview": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskRoleId": 0, "taskDecision": null, "isActive": null, "createdDate": null, "modifiedBy": null, "wfRoleId": 0, "modifiedDate": null }, "options": null, "emailNotificationModel": null, "taskOptionsListNested": null, "days": 0, "permit": null, "licPermitType": null, "licensePermitMapping": null, "licenseFee": null, "accountBalance": null, "licenseDescription": null, "isSeasonal": false, "isSummerSeasonal": false, "newExpiryDate": null, "amountDue": null, "originalLicenseFee": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskId": null, "taskRoleId": 0, "taskDecision": null, "wfRoleId": 0 }, "person": [ ], "totalRecord": 0, "apps": [ ] }
3225
And print 'licId : ' , licId
0
19:21:56.236 [print] licId : 1470
3226
And print 'licenseId : ' , licenseId
0
19:21:56.236 [print] licenseId : 0111-22-129121
3227
And match licId != []
0
3228
And match licenseId != []
0
520
And print licenseId
0
19:21:56.245 [print] 0111-22-129121
521
* def notQualifiedApplication = false
0
522
* def notQlfdAppMessage = ''
0
523
* call read('RenewalCommonMethods.feature@IntakeRenewalLicense') {}
2972
>>
karate.UseCases.RenewalCommonMethods
2346
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
1
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
1
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
169
Given path '/internalapi/api/licensing/search/searchLicensesAndPermits/'
0
170
And header Content-Type = 'application/json; charset=utf-8'
0
172
And header Accept = 'application/json; text/plain;*/*'
0
173
And header authorization = 'Bearer ' + strToken
0
176
And request {"WfTaskIdList":[],"LicenseStatusList":[19,45,40],"ShowLicensesAndPermits":true,"Status":null,"isTempPermit":null,"ApplicationId":null,"LicensePermitId":'#(licenseId)',"LegalName":null,"FEIN":null,"applyFor":""}
0
177
When method POST
161
19:21:56.867 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/search/searchLicensesAndPermits 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 213 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"WfTaskIdList":[],"LicenseStatusList":[19,45,40],"ShowLicensesAndPermits":true,"Status":null,"isTempPermit":null,"ApplicationId":null,"LicensePermitId":"0111-22-129121","LegalName":null,"FEIN":null,"applyFor":""} 19:21:57.028 response time in milliseconds: 160 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:53 GMT 1 < Content-Length: 1291 {"licenses":[{"lpId":1470,"licensePermitId":"0111-22-129121","licPermitTypeId":40,"isAccociatedLicense":false,"appId":13856,"mainAppId":13856,"status":"Active","legacySerialNo":null,"isLicense":true,"isPermit":null,"issueDate":"2022-11-15T00:00:00","expiryDate":"2022-11-25T00:00:00","effectiveDate":"2022-11-15T00:00:00","safeKeepingExpiryDate":null,"licensePermitStatusId":19,"combinedCraftId":null,"masterFileId":null,"isApplicableForTransfer":null,"surrenderDate":null,"isActive":true,"createdDate":"2022-11-15T08:51:50.87","modifiedDate":null,"submitDate":"2022-11-15T08:51:37.177","description":"Restaurant-Beer","county":"New York","legalName":"Automation20221115192129Automation","fein":"","formId":1165,"isRenewalRequird":true,"dba":null,"associatePermits":[],"provisions":[],"address":{"addressId":null,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":null,"county":"New York","zipCode":"12345","zip4":null,"street":null,"telephoneNumber":null,"country":null,"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":null,"serialNo":0,"addressType":null,"state":null},"mfCCId":null}],"totalRecord":1}
178
Then status 200
0
179
* def licPermitTypeId = response.licenses[0].licPermitTypeId
0
180
* def lpId = response.licenses[0].lpId
0
181
* def effectiveDate = response.licenses[0].effectiveDate
0
182
* def expiryDate = response.licenses[0].expiryDate
0
183
* def legalName = response.licenses[0].legalName
0
184
* def licAppId = response.licenses[0].appId
0
185
* def submitDate = response.licenses[0].submitDate
0
186
* call read('LicensesCommonMethods.feature@GetCountyList') {}
1759
>>
karate.UseCases.LicensesCommonMethods
477
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
117
Given path '/internalapi/api/reference'
0
118
* def dbSts = db.cleanHeap()
335
119
And header authorization = 'Bearer ' + strToken
0
120
And header Content-Type = 'application/json;charset=utf-8'
0
121
And header Accept = 'text/plain'
0
# * def query = {name:countyzone&onlyActives:true}
123
And params {name:countyzone,onlyActives:true}
0
#And param onlyActives='true'
125
And request {}
0
126
When method get
138
19:21:58.645 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/reference?name=countyzone&onlyActives=true 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json;charset=utf-8 1 > Accept: text/plain 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:58.782 response time in milliseconds: 137 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:56 GMT 1 < Content-Length: 11712 {"values":[{"CountyId":1,"County":"New York","ShortName":"NEW","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T00:00:00","ModifiedBy":"esandoval","ModifiedDate":"2020-11-10T11:30:56.047"},{"CountyId":2,"County":"Kings","ShortName":"KING","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":3,"County":"Bronx","ShortName":"BRON","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":4,"County":"Queens","ShortName":"QUEE","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":5,"County":"Richmond","ShortName":"RICH","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":6,"County":"Nassau","ShortName":"NASS","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":7,"County":"Suffolk","ShortName":"SUFF","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":8,"County":"Westchester","ShortName":"WEST","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":9,"County":"Orange","ShortName":"ORAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":10,"County":"Putnam","ShortName":"PUTN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":11,"County":"Rockland","ShortName":"ROCK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":12,"County":"Albany","ShortName":"ALBA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":13,"County":"Clinton","ShortName":"CLIN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":14,"County":"Columbia","ShortName":"COLU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":15,"County":"Dutchess","ShortName":"DUTC","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":16,"County":"Essex","ShortName":"ESSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":17,"County":"Franklin","ShortName":"FRAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":18,"County":"Fulton","ShortName":"FULT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":19,"County":"Greene","ShortName":"GREE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":20,"County":"Hamilton","ShortName":"HAMI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":21,"County":"Montgomery","ShortName":"MONT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":22,"County":"Rensselaer","ShortName":"RENS","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":23,"County":"Saratoga","ShortName":"SARA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":24,"County":"Schenectady","ShortName":"SCHE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":25,"County":"Schoharie","ShortName":"SCHO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":26,"County":"Sullivan","ShortName":"SULL","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":27,"County":"Ulster","ShortName":"ULST","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":28,"County":"Warren","ShortName":"WARR","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":29,"County":"Washington","ShortName":"WASH","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":30,"County":"Allegany","ShortName":"ALLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":31,"County":"Cattaraugus","ShortName":"CATT","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":32,"County":"Chautauqua","ShortName":"CHAU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":33,"County":"Chemung","ShortName":"CHEM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":34,"County":"Erie","ShortName":"ERIE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":35,"County":"Genesee","ShortName":"GENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":36,"County":"Livingston","ShortName":"LIVI","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":37,"County":"Monroe","ShortName":"MONR","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":38,"County":"Niagara","ShortName":"NIAG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":39,"County":"Ontario","ShortName":"ONTA","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":40,"County":"Orleans","ShortName":"ORLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":41,"County":"Schuyler","ShortName":"SCHU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":42,"County":"Seneca","ShortName":"SENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":43,"County":"Steuben","ShortName":"STEU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":44,"County":"Wayne","ShortName":"WAYN","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":45,"County":"Wyoming","ShortName":"WYOM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":46,"County":"Yates","ShortName":"YATE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":47,"County":"Broome","ShortName":"BROO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":48,"County":"Chenango","ShortName":"CHEN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":49,"County":"Cortland","ShortName":"CORT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":50,"County":"Delaware","ShortName":"DELA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":51,"County":"Herkimer","ShortName":"HERK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":52,"County":"Jefferson","ShortName":"JEFF","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":53,"County":"Lewis","ShortName":"LEWI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":54,"County":"Madison","ShortName":"MADI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":55,"County":"Oneida","ShortName":"ONEI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":56,"County":"Onondaga","ShortName":"ONON","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":57,"County":"Oswego","ShortName":"OSWE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":58,"County":"Otsego","ShortName":"OTSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":59,"County":"St. Lawrence","ShortName":"ST L","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":60,"County":"Cayuga","ShortName":"CAYU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":61,"County":"Tioga","ShortName":"TIOG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":62,"County":"Tompkins","ShortName":"TOMP","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.6","ModifiedBy":null,"ModifiedDate":null}],"name":"countyzone","schema":[{"columnName":"CountyId","dataType":"int","maxLenght":null,"isRequired":true},{"columnName":"County","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ShortName","dataType":"nvarchar","maxLenght":10,"isRequired":false},{"columnName":"ZoneNo","dataType":"int","maxLenght":null,"isRequired":false},{"columnName":"IsActive","dataType":"bit","maxLenght":null,"isRequired":false},{"columnName":"CreatedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"CreatedDate","dataType":"datetime","maxLenght":null,"isRequired":false},{"columnName":"ModifiedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ModifiedDate","dataType":"datetime","maxLenght":null,"isRequired":false}]}
127
* configure continueOnStepFailure = true
0
128
Then status 200
0
129
And def values = response.values
0
130
* configure continueOnStepFailure = true
0
187
* def countyData = karate.jsonPath(values, "$[?(@.CountyId == '" + CountyId + "')]")
1
188
* def countyZone = countyData[0].ZoneNo
0
189
And print countyZone
0
19:21:58.790 [print] 1
190
Given path '/internalapi/api/licensing/renewal/save'
0
191
* def dbSts = db.cleanHeap()
256
192
And header authorization = 'Bearer ' + strToken
0
193
And header Content-Type = 'application/json; charset=utf-8'
0
194
And header Accept = 'application/json; text/plain;*/*'
0
195
And configure continueOnStepFailure = true
0
196
And request {"mainLicenseId":'#(licenseId)',"associated":[],"notQualifiedApplication":'#(notQualifiedApplication)',"NotQualifiedComments":'#(notQlfdAppMessage)'}
0
197
When method Post
164
19:21:59.046 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/renewal/save 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > Content-Length: 108 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"mainLicenseId":"0111-22-129121","associated":[],"notQualifiedApplication":false,"NotQualifiedComments":""} 19:21:59.210 response time in milliseconds: 164 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:51:56 GMT 2 < Content-Length: 170 [{"appId":13857,"formId":1167,"childAppId":null,"mainApplicationId":"RE-22-106365-01","childApplicationId":null,"licensePermitTypeId":40,"description":"Restaurant-Beer"}]
198
* configure continueOnStepFailure = true
0
199
Then status 200
0
200
* def description = response[0].description
0
201
* def appId = response[0].appId
0
202
* def formId = response[0].formId
0
203
* def ApplicationId = response[0].mainApplicationId
0
204
And print ApplicationId
0
19:21:59.210 [print] RE-22-106365-01
205
And match ApplicationId contains 'RE-'
0
207
* def currentYear = '-'+getYearFunc()+'-'
1
208
And match ApplicationId contains currentYear
0
524
* call read('RenewalCommonMethods.feature@SaveAssociatedPrincipal') {}
574
>>
karate.UseCases.RenewalCommonMethods
334
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
1
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
464
Given path '/internalapi/api/licensing/app/static/principal/'+appId
0
466
And header Content-Type = 'application/json; charset=utf-8'
0
467
And header Accept = 'application/json; text/plain;*/*'
0
468
And header authorization = 'Bearer ' + strToken
0
469
And request {}
0
470
When method get
157
19:21:59.458 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/13857 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:21:59.614 response time in milliseconds: 156 1 < 200 1 < Content-Length: 1388 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:56 GMT {"entities":[],"principals":[{"principalId":3279,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":true,"isFingerprintsApproved":true,"percentageOfOwners":20.0,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","entities":null,"numberOfShares":"","isSignature":false,"isRemove":false,"date":"2022-11-15T00:00:00","convictedOfCrime":"1","title":"15","isLicensed":true,"isAssociated":true,"person":{"personId":5570,"firstName":"Automation20221115192130","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T00:00:00","serialNo":0,"age":0,"choosedEntity":[]},"address":{"addressId":29329,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25241,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
471
Then status 200
0
472
* def personResponse = response
0
473
* def principalId = personResponse.principals[0].principalId
0
474
* def personId = personResponse.principals[0].person.personId
0
475
* def licFirstName = personResponse.principals[0].person.firstName
0
476
* def licLastName = personResponse.principals[0].person.lastName
0
477
* def licCommID = personResponse.principals[0].communication.id
0
478
* def licEmailID = personResponse.principals[0].communication.email
0
479
* def licAddressId = personResponse.principals[0].address.addressId
0
480
Given path '/internalapi/api/licensing/app/static/principal/save/'+appId
0
482
And header Content-Type = 'application/json; charset=utf-8'
0
483
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
492
* def prncipalName = 'AutoRenewal'+getDate1()
1
494
And header Accept = 'application/json; text/plain;*/*'
0
495
And header authorization = 'Bearer ' + strToken
0
498
And request {"entities":[],"principals":[{"principalId":'#(principalId)',"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":true,\"isNewPrincipal\":false}","entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":'#(personId)',"firstName":'#(licFirstName)',"middleName":"","lastName":'#(licLastName)',"suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":null},"address":{"addressId":'#(licAddressId)',"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":'#(licCommID)',"email":'#(licEmailID)',"confirmEmail":'#(licEmailID)',"phones":[]}},{"principalId":0,"convictedOfCrime":"","percentageOfOwners":"","isFingerprintRequired":"","isFingerprintsApproved":"","title":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"Test Address1","addressLine2":"","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":'#(licEmailID)',"confirmEmail":'#(licEmailID)'},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
0
499
When method post
172
19:21:59.618 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/save/13857 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 2220 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"entities":[],"principals":[{"principalId":3279,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":true,\"isNewPrincipal\":false}","entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":5570,"firstName":"Automation20221115192130","middleName":"","lastName":"AutoLastName","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":null},"address":{"addressId":29329,"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25241,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}},{"principalId":0,"convictedOfCrime":"","percentageOfOwners":"","isFingerprintRequired":"","isFingerprintsApproved":"","title":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"Test Address1","addressLine2":"","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":"automation@svam.com","confirmEmail":"automation@svam.com"},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]} 19:21:59.788 response time in milliseconds: 170 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:51:57 GMT 2 < Content-Length: 2326 {"entities":[],"principals":[{"principalId":3279,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":null,"entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":5570,"firstName":"Automation20221115192130","middleName":"","lastName":"AutoLastName","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":[]},"address":{"addressId":29329,"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25241,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}},{"principalId":3280,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":null,"entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":[]},"address":{"addressId":0,"appId":null,"addressLine1":"Test Address1","addressLine2":"","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":0,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
500
Then status 200
0
525
* call read('RenewalCommonMethods.feature@Fee_Check') {}
491
>>
karate.UseCases.RenewalCommonMethods
259
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
0
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
504
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
505
* def totalFees = licenseFees + fillingFees
0
506
And print totalFees
0
19:22:00.023 [print] 1060.0
507
And header Content-Type = 'application/json; charset=utf-8'
0
508
And header Accept = 'application/json; text/plain;*/*'
0
509
And header authorization = 'Bearer ' + strToken
0
510
And request {}
0
511
When method get
256
19:22:00.023 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13857 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:22:00.279 response time in milliseconds: 256 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:57 GMT 1 < Content-Length: 655 [{"licenseName":"Restaurant - Beer","applicationId":"RE-22-106365-01","applicationTypeId":2,"appFeesId":0,"appId":13857,"feesRefId":6042,"initialFees":0.0,"licensingFees":480.00,"amendmentFees":0.0,"renewalFees":30.00,"totalFees":0.0,"filingFees":0.0,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
512
Then status 200
0
513
And def serverResponse = response
0
514
* def licTerm = serverResponse[0].term
0
515
* def licFees = serverResponse[0].licensingFees+''
0
516
* def licTermDesc = serverResponse[0].termDesc
0
517
* def licFeesRefId = serverResponse[0].feesRefId
0
519
* def licAncillaryFees = serverResponse[0].ancillaryFees+''
0
520
* def licfilingFees = serverResponse[0].filingFees+''
0
521
* def licInitialFees = serverResponse[0].initialFees
0
522
* def licRenewalFees = serverResponse[0].renewalFees
0
526
* match licRenewalFees == 30
0
527
* call read('RenewalCommonMethods.feature@RenewalFeesValidationwithMultipleChecks') {amount:'#(totalFees)'}
2386
19:22:02.669 classpath:karate/UseCases/Uc_RenewalIntakeFees.feature:527 * call read('RenewalCommonMethods.feature@RenewalFeesValidationwithMultipleChecks') {amount:'#(totalFees)'} status code was: 404, expected: 200, response time in milliseconds: 467, url: https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13857/false/internalapi/api/licensing/app/save, response: classpath:karate/UseCases/RenewalCommonMethods.feature:668 classpath:karate/UseCases/Uc_RenewalIntakeFees.feature:527
>>
karate.UseCases.RenewalCommonMethods
2162
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
0
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
541
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
542
And header Content-Type = 'application/json; charset=utf-8'
0
543
And header Accept = 'application/json; text/plain;*/*'
0
544
And header authorization = 'Bearer ' + strToken
0
545
And request {}
0
546
When method get
230
19:22:00.506 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13857 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:22:00.735 response time in milliseconds: 229 1 < 200 1 < Content-Length: 655 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:51:57 GMT [{"licenseName":"Restaurant - Beer","applicationId":"RE-22-106365-01","applicationTypeId":2,"appFeesId":0,"appId":13857,"feesRefId":6042,"initialFees":0.0,"licensingFees":480.00,"amendmentFees":0.0,"renewalFees":30.00,"totalFees":0.0,"filingFees":0.0,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
547
Then status 200
0
548
And def serverResponse = response
0
549
* def licTerm = serverResponse[0].term
0
550
* def licFees = serverResponse[0].licensingFees+''
0
551
* def licTermDesc = serverResponse[0].termDesc
0
552
* def licFeesRefId = serverResponse[0].feesRefId
0
553
* def licAncillaryFees = serverResponse[0].ancillaryFees+''
0
554
* def licfilingFees = serverResponse[0].filingFees+''
0
555
* def licInitialFees = serverResponse[0].initialFees
1
556
* def bndFees = serverResponse[0].bondFee
0
557
* def isBondRequired = serverResponse[0].isBondRequired
0
558
And def totalFees = serverResponse[0].licensingFees+serverResponse[0].filingFees
0
559
And print totalFees
0
19:22:00.736 [print] 480.0
560
* def underpaidAmount = totalFees-(amount+100)
1
561
* def amountPaid = amount+''
0
562
And print 'underpaidAmount- ',underpaidAmount
0
19:22:00.737 [print] underpaidAmount- -680.0
565
Given path '/internalapi/api/notification/SaveNotification'
0
567
And header Content-Type = 'application/json; charset=utf-8'
0
568
And header Accept = 'application/json; text/plain;*/*'
0
569
And header authorization = 'Bearer ' + strToken
0
570
And request {"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}
0
571
When method post
323
19:22:00.739 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/notification/SaveNotification 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 2006 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13857,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13857,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13857,"createdBy":"Tarun Gupta"} 19:22:01.061 response time in milliseconds: 322 2 < 200 2 < Content-Length: 5 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:51:58 GMT false
572
Then status 200
0
573
And print response
0
19:22:01.061 [print] false
577
Given path 'internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
578
And header Content-Type = 'application/json; charset=utf-8'
0
579
* def futureDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
592
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
602
* def date = getDate2()
0
605
* def futureDate = futureDateFunc()
1
606
And header Accept = 'application/json; text/plain;*/*'
0
607
And header authorization = 'Bearer ' + strToken
0
609
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":100},{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"2","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":'#(amountPaid)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":"0.00","totalFees":"580.00","filingFees":'#(licfilingFees)',"ancillaryFees":'#(licAncillaryFees)',"isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":false,"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(licTerm)',"termDesc":'#(licTermDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"isFromReturnedCheck":false,"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
0
611
When method post
461
19:22:01.063 request: 3 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13857/false 3 > Content-Type: application/json; charset=utf-8 3 > Accept: application/json; text/plain;*/* 3 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 3 > Content-Length: 5291 3 > Host: slaleapqaapi.svam.com 3 > Connection: Keep-Alive 3 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 3 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13857,"slaintakeDate":"2022-11-15T19:22:01.061Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:22:01.061Z","amount":100},{"appId":13857,"slaintakeDate":"2022-11-15T19:22:01.061Z","applyClick":false,"paymentSource":"RDC","checkNo":"2","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:22:01.061Z","amount":"1060"}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"RE-22-106365-01","applicationTypeId":1,"appFeesId":0,"appId":13857,"feesRefId":6042,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"0.00","totalFees":"580.00","filingFees":"0","ancillaryFees":"0","isFeesWaived":false,"underPaymentAmount":480.0,"amountReceived":"0.00","waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"isFromReturnedCheck":false,"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-11-22T19:22:00.503Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13857,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13857,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13857,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13857,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13857,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13857,"createdBy":"Tarun Gupta"},"taskId":null} 19:22:01.523 response time in milliseconds: 460 3 < 200 3 < Content-Length: 4 3 < Content-Type: application/json; charset=utf-8 3 < Server: Microsoft-IIS/10.0 3 < Strict-Transport-Security: max-age=2592000 3 < X-Powered-By: ASP.NET 3 < Date: Tue, 15 Nov 2022 13:51:58 GMT true
612
Then status 200
0
614
Given path 'internalapi/api/licensing/fees/check-payments/get/'+appId
0
615
And header authorization = 'Bearer ' + strToken
0
616
And request {}
0
617
When method get
320
19:22:01.525 request: 4 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/check-payments/get/13857 4 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 4 > Content-Type: application/json; charset=UTF-8 4 > Content-Length: 2 4 > Host: slaleapqaapi.svam.com 4 > Connection: Keep-Alive 4 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 4 > Accept-Encoding: gzip,deflate {} 19:22:01.843 response time in milliseconds: 318 4 < 200 4 < Content-Type: application/json; charset=utf-8 4 < Server: Microsoft-IIS/10.0 4 < Strict-Transport-Security: max-age=2592000 4 < X-Powered-By: ASP.NET 4 < Date: Tue, 15 Nov 2022 13:51:58 GMT 4 < Content-Length: 881 [{"checkDetailId":2338,"appId":13857,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T00:00:00","slaintakeDate":"2022-11-15T00:00:00","amount":100.0000,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T08:51:58.79","modifiedBy":null,"modifiedDate":null},{"checkDetailId":2339,"appId":13857,"paymentSource":"RDC","checkNo":"2","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T00:00:00","slaintakeDate":"2022-11-15T00:00:00","amount":1060.0000,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T08:51:58.797","modifiedBy":null,"modifiedDate":null}]
618
Then status 200
0
619
And def checkDetailId = response[0].checkDetailId
0
620
And print checkDetailId
0
19:22:01.844 [print] 2338
621
And def checkDetailId1 = response[1].checkDetailId
0
622
And print checkDetailId1
0
19:22:01.844 [print] 2339
625
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
626
And header authorization = 'Bearer ' + strToken
0
627
And header Content-Type = 'application/json; charset=utf-8'
0
628
And header Accept = 'application/json; text/plain;*/*'
0
629
And request ""
0
630
When method get
348
19:22:01.845 request: 5 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13857 5 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 5 > Content-Type: application/json; charset=utf-8 5 > Accept: application/json; text/plain;*/* 5 > Content-Length: 0 5 > Host: slaleapqaapi.svam.com 5 > Connection: Keep-Alive 5 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 5 > Accept-Encoding: gzip,deflate 19:22:02.192 response time in milliseconds: 347 5 < 200 5 < Content-Length: 658 5 < Content-Type: application/json; charset=utf-8 5 < Server: Microsoft-IIS/10.0 5 < Strict-Transport-Security: max-age=2592000 5 < X-Powered-By: ASP.NET 5 < Date: Tue, 15 Nov 2022 13:51:59 GMT [{"licenseName":"Restaurant - Beer","applicationId":"RE-22-106365-01","applicationTypeId":2,"appFeesId":3076,"appId":13857,"feesRefId":6042,"initialFees":0.0,"licensingFees":480.00,"amendmentFees":0.0,"renewalFees":30.00,"totalFees":0.0,"filingFees":0.0,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
631
Then status 200
0
632
And print response[0].appFeesId
0
19:22:02.193 [print] 3076
633
And def appFeesId1 = response[0].appFeesId
0
634
And def feesRefId1 = response[0].feesRefId
0
635
And print appFeesId1
0
19:22:02.193 [print] 3076
636
And print feesRefId1
0
19:22:02.193 [print] 6042
637
And def applicationTypeId = response[0].applicationTypeId
0
638
And print applicationTypeId
0
19:22:02.193 [print] 2
# ********* Save PAYMENT *********************
641
Given path '/internalapi/api/licensing/fees/details/save/'+appId +'/false'
0
643
* def slaDate = licFeesDate()
1
644
* def slaaDate = licDate()
0
645
* def licInitialFees1 = licInitialFees+''
0
646
And print licInitialFees1
0
19:22:02.195 [print] 0
647
* def renewalFees1 = renewalFees+''
0
648
And print renewalFees1
0
19:22:02.195 [print] 30
649
* def totalFees1 = totalFees+''
0
651
And print totalFees1
0
19:22:02.195 [print] 480
652
* def licAncillaryFees1 = licAncillaryFees+''
0
653
* def licfilingFees1 = licfilingFees+''
0
655
And header authorization = 'Bearer ' + strToken
0
656
And request {"checks":[{"checkDetailId":'#(checkDetailId)',"appId":'#(appId)',"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":'#(date)',"slaintakeDate":'#(date)',"amount":100,"appliedTo":null,"amountUsed":100,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":'#(date)',"modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0},{"checkDetailId":'#(checkDetailId1)',"appId":'#(appId)',"paymentSource":"RDC","checkNo":"2","batchNo":"1","itemNo":"1","slareceivedDate":'#(date)',"slaintakeDate":'#(date)',"amount":'#(amountPaid)',"appliedTo":null,"amountUsed":0,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":'#(date)',"modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":'#(amountPaid)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":'#(licFeesRefId)',"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":"0.00","totalFees":'#(totalFees1)',"filingFees":'#(licfilingFees1)',"ancillaryFees":'#(licAncillaryFees)',"isFeesWaived":false,"underPaymentAmount":0,"amountReceived":'#(amountPaid)',"waivedComment":null,"isBondReceived":false,"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":'#(appId)',"checkDetailId":'#(checkDetailId)',"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":"100.00","amount":0},{"appId":'#(appId)',"checkDetailId":'#(checkDetailId1)',"checkNo":"2","itemNo":"1","batchNo":"1","amountAppliedForApp":'#(amountPaid)',"amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"isFromReturnedCheck":false,"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":true,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
0
#{"checks":[{"checkDetailId":1622,"appId":5856,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-09-23T00:00:00.000Z","slaintakeDate":"2022-09-23T00:00:00.000Z","amount":"100.00","isPaymentFailed":false,"appliedTo":null,"amountUsed":100,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-09-23T13:22:04.11","modifiedBy":null,"modifiedDate":null,"applyClick":true},{"checkDetailId":1623,"appId":5856,"paymentSource":"RDC","checkNo":"2","batchNo":"1","itemNo":"1","slareceivedDate":"2022-09-23T00:00:00.000Z","slaintakeDate":"2022-09-23T00:00:00.000Z","amount":"10.00","isPaymentFailed":false,"appliedTo":null,"amountUsed":10,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-09-23T13:22:04.113","modifiedBy":null,"modifiedDate":null,"applyClick":true}],"appFees":{"appFees":[{"licenseName":"Restaurant - Beer","applicationId":"RE-22-106102-01","applicationTypeId":2,"appFeesId":3976,"appId":5856,"feesRefId":6039,"initialFees":0,"licensingFees":"960.00","amendmentFees":"0.00","renewalFees":"0.00","totalFees":"960.00","filingFees":"0.00","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":850,"amountReceived":"110.00","waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appPaymentId":2112,"amountAppliedForApp":"100.00","checkDetailId":1622,"appId":5856,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-09-23T00:00:00","slaintakeDate":"2022-09-23T00:00:00","amount":0,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":null,"createdDate":"2022-09-23T13:21:19.61","modifiedBy":"tgupta@svam.com","modifiedDate":"2022-09-23T13:22:04.06"},{"appPaymentId":2113,"amountAppliedForApp":"10.00","checkDetailId":1623,"appId":5856,"paymentSource":"RDC","checkNo":"2","batchNo":"1","itemNo":"1","slareceivedDate":"2022-09-23T00:00:00","slaintakeDate":"2022-09-23T00:00:00","amount":0,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":null,"createdDate":"2022-09-23T13:21:19.623","modifiedBy":"tgupta@svam.com","modifiedDate":"2022-09-23T13:22:04.07"}],"lateFee":0,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}],"isBondRequired":true,"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":true,"fundDueDate":"2022-09-30T00:00:00.000Z","emailNotificationDetail":{"applicant":{"communicationId":0,"email":"automation@svam.com","appId":5856,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19517,"email":"sbandi@svam.com","appId":5856,"emailContactTypeId":2,"isChecked":true,"roleId":0,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"automation@test.com","appId":5856,"emailContactTypeId":0,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":true,"appId":5856,"notificationTypeId":96}},"notificationDetails":{"applicant":{"communicationId":0,"email":"automation@svam.com","appId":5856,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19517,"email":"sbandi@svam.com","appId":5856,"emailContactTypeId":2,"isChecked":true,"roleId":0,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"automation@test.com","appId":5856,"emailContactTypeId":0,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":true,"appId":5856,"notificationTypeId":96},"taskId":2066} When method post
658
Then status 200
0
659
And print response
0
19:22:02.196 [print] [ { "licenseName": "Restaurant - Beer", "applicationId": "RE-22-106365-01", "applicationTypeId": 2, "appFeesId": 3076, "appId": 13857, "feesRefId": 6042, "initialFees": 0.0, "licensingFees": 480.0, "amendmentFees": 0.0, "renewalFees": 30.0, "totalFees": 0.0, "filingFees": 0.0, "ancillaryFees": 0.0, "isFeesWaived": false, "underPaymentAmount": 0.0, "amountReceived": 0.0, "waivedComment": null, "isBondReceived": false, "isBondRequired": true, "bondFee": 1000.0, "term": 3, "termDesc": "3 Year (s)", "seasonalStartDate": null, "seasonalEndDate": null, "isFeesCountBased": false, "isFeesUnitBased": false, "numOfUnits": 0, "paymentDetails": [ ], "lateFee": 0.0, "isFeesBarPerDay": null, "tempWinaryLicenseFee": null } ]
# ********* SAVE Application Details To Save *********************
664
Given path '/internalapi/api/licensing/app/save'
0
665
And header authorization = 'Bearer ' + strToken
0
666
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":'#(CityName)',"fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
1
667
When method post
468
19:22:02.199 request: 6 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13857/false/internalapi/api/licensing/app/save 6 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 6 > Content-Type: application/json; charset=UTF-8 6 > Content-Length: 30719 6 > Host: slaleapqaapi.svam.com 6 > Connection: Keep-Alive 6 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 6 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13857,"formID":1167,"applicationID":"RE-22-106365-01","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:22:02.666 response time in milliseconds: 467 6 < 404 6 < Transfer-Encoding: chunked 6 < Server: Microsoft-IIS/10.0 6 < Strict-Transport-Security: max-age=2592000 6 < X-Powered-By: ASP.NET 6 < Date: Tue, 15 Nov 2022 13:51:59 GMT
668
Then status 200
0
19:22:02.667 classpath:karate/UseCases/RenewalCommonMethods.feature:668 Then status 200 status code was: 404, expected: 200, response time in milliseconds: 467, url: https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13857/false/internalapi/api/licensing/app/save, response: classpath:karate/UseCases/RenewalCommonMethods.feature:668
669
And def serverResponse = response
0
528
* call read('RenewalCommonMethods.feature@Draft_Status_Check') {}
0
Scenario: [5.1:620] TC011_SLA_REN_Intake_Fees_Underpayment_Before_due_date
ms: 37537
>>
Background:
3
* url BaseURL
0
19:22:02.750 karate.env system property was: svamqa
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* callonce read('LoginDetails.feature') { strToken:'#(strToken)'}
42
8
* def amendmentTypeId = 1
0
9
* def waitFunc =
0
function(timeinMiliSeconds) { // load java type into js engine var Thread = Java.type('java.lang.Thread'); Thread.sleep(timeinMiliSeconds*1000); }
17
* def DueDate =
0
function(numberOfDays){ var date = new Date(); date.setDate(date.getDate() + (numberOfDays)); return date.toString() }
25
* def DueDateCheck = DueDate(7)
1
27
* def getcorporateStructureCodeFunc =
0
function(value){ if (value === 'Individual'){ return 1; } else { return 2; } }
38
* def getStatusIndOrgStatus =
0
function(value){ if (value === 'Individual'){ return true; } else { return false; } }
49
* def getIndORgCodeFunc =
0
function(value1, value2){ if (value1 == 1 && value2 == 'Individual'){ return 1; } else if (value1 == 1 && value2 == 'Sole Propretior'){ return 2; } else if (value1 == 2 && value2 == 'Individual'){ return 1; } else if (value1 == 2 && value2 == 'Limited Liability Company'){ return 2; }else if (value1 == 2 && value2 == 'Corporation'){ return 3; }else if (value1 == 2 && value2 == 'Limited Liability Partnership'){ return 4; }else if (value1 == 2 && value2 == 'Limited Partnership'){ return 5; }else if (value1 == 2 && value2 == 'Partnership'){ return 6; }else if (value1 == 2 && value2 == 'Government'){ return 7; }else if (value1 == 2 && value2 == 'Sole Propretior'){ return 8; }else if (value1 == 2 && value2 == 'Trust'){ return 9; }else if (value1 == 2 && value2 == 'Estate'){ return 10; } else { return 1; } }
87
* def getFundDueDateMMYYDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
99
* def mmyydateFundDueDate = getFundDueDateMMYYDate(7)
2
100
And print mmyydateFundDueDate
0
19:22:02.796 [print] 11/22/2022
102
* def getAmendmentTypeIdFunc =
0
function(amendmentType){ if (amendmentType == 'ABC Officer'){ return 1; } else if (amendmentType == 'Additional Bar'){ return 2; } else if (amendmentType == 'Alteration'){ return 3; } else if (amendmentType == 'Alteration with Additional Bar'){ return 3; } }
121
* def waitFunc =
0
function(timeinMiliSeconds) { // load java type into js engine var Thread = Java.type('java.lang.Thread'); Thread.sleep(timeinMiliSeconds*1000); }
129
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
140
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
151
* def getMMMMDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MMMM dd, yyyy"); var date = new java.util.Date(); return sdf.format(date); }
161
* def mmmmdate = getMMMMDate()
0
163
* def getMMYYDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); return sdf.format(date); }
173
* def mmyydate = getMMYYDate()
0
175
* def getFundDueDateMMYYDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
187
* def mmyydateFundDueDate = getFundDueDateMMYYDate(7)
1
189
* def dateFnc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date( date.getTime() - java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
199
* def dateWithMonthsNameFnc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MMMM dd, yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date( date.getTime()); return sdf.format(dayAfter); }
208
* def dateWithMonthsName = dateWithMonthsNameFnc()
1
209
And print dateWithMonthsName
0
19:22:02.799 [print] November 15, 2022
541
* def IndOrgSelectionDropDown = 'Individual'
0
542
* def indOrgCode = getIndORgCodeFunc(IndOrgSelectionDropDown)
0
543
And print indOrgCode
0
19:22:02.799 [print] 1
544
* def isIndStatus = getStatusIndOrgStatus(IndOrgSelectionDropDown)
0
545
* def CorporateStructureDropDown = 'Individual'
0
546
* def CorporateStructureDropDownCode = getIndORgCodeFunc(indOrgCode,CorporateStructureDropDown)
0
547
And print CorporateStructureDropDownCode
0
19:22:02.800 [print] 1
548
* def firstName = 'Automation'
0
549
* def lastName = 'Automation'
0
550
* def legalName = firstName+ ' '+lastName
0
551
* def Address1 = 'Address1'
0
552
* def Address2 = 'Address2'
0
553
* def CityName = 'New York'
0
554
* def zipCode = '12345'
0
555
* def postalCode = '1234'
0
556
* def countryName = 'United States (US)'
0
557
* def emailId = 'automation@svam.com'
0
558
* def convictedOfCrime = '1'
0
559
* def percentageOfOwners = '20'
0
560
* def isFingerprintRequired = true
0
561
* def isFingerprintsApproved = true
0
562
* def isSignature = true
0
564
* def convictedOfCrime = '1'
0
565
* def PhoneNumber = '999-999-9999'
0
566
* def PhoneExtn = 1234
0
567
* def countryCode = '+91'
0
568
* def stateCode = 40
0
570
* def mainLicensePermitTypeId = 40
0
571
* def termInYears = 3
0
572
* def termDesc = 3+' Year (s)'
0
573
* def licenseFees = 960
0
574
* def fillingFees = 100
0
575
* def licAncillaryFees = 0
0
576
* def renewalFees = 30+''
0
577
* string productName = 'RestaurantBeer'+''
0
579
* def CountyId = 1
0
580
* def CountyName = 'New York'
0
581
* def totalFees = licenseFees+fillingFees+licAncillaryFees
0
582
* def amountPaid = totalFees+''
0
583
* def splittedCityName = CityName.replaceAll(" ","")
0
585
* call read('LicensesCommonMethods.feature@IntakeLicensewithoutAssociatedLic') {}
2743
>>
karate.UseCases.LicensesCommonMethods
2163
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* App Intake *********************
290
* call read('LicensesCommonMethods.feature@GetCountyList') {}
1489
>>
karate.UseCases.LicensesCommonMethods
597
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
117
Given path '/internalapi/api/reference'
0
118
* def dbSts = db.cleanHeap()
439
119
And header authorization = 'Bearer ' + strToken
0
120
And header Content-Type = 'application/json;charset=utf-8'
0
121
And header Accept = 'text/plain'
0
# * def query = {name:countyzone&onlyActives:true}
123
And params {name:countyzone,onlyActives:true}
0
#And param onlyActives='true'
125
And request {}
0
126
When method get
154
19:22:04.666 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/reference?name=countyzone&onlyActives=true 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json;charset=utf-8 1 > Accept: text/plain 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:22:04.817 response time in milliseconds: 151 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:02 GMT 1 < Content-Length: 11712 {"values":[{"CountyId":1,"County":"New York","ShortName":"NEW","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T00:00:00","ModifiedBy":"esandoval","ModifiedDate":"2020-11-10T11:30:56.047"},{"CountyId":2,"County":"Kings","ShortName":"KING","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":3,"County":"Bronx","ShortName":"BRON","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":4,"County":"Queens","ShortName":"QUEE","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":5,"County":"Richmond","ShortName":"RICH","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":6,"County":"Nassau","ShortName":"NASS","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":7,"County":"Suffolk","ShortName":"SUFF","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":8,"County":"Westchester","ShortName":"WEST","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":9,"County":"Orange","ShortName":"ORAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":10,"County":"Putnam","ShortName":"PUTN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":11,"County":"Rockland","ShortName":"ROCK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":12,"County":"Albany","ShortName":"ALBA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":13,"County":"Clinton","ShortName":"CLIN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":14,"County":"Columbia","ShortName":"COLU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":15,"County":"Dutchess","ShortName":"DUTC","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":16,"County":"Essex","ShortName":"ESSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":17,"County":"Franklin","ShortName":"FRAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":18,"County":"Fulton","ShortName":"FULT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":19,"County":"Greene","ShortName":"GREE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":20,"County":"Hamilton","ShortName":"HAMI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":21,"County":"Montgomery","ShortName":"MONT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":22,"County":"Rensselaer","ShortName":"RENS","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":23,"County":"Saratoga","ShortName":"SARA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":24,"County":"Schenectady","ShortName":"SCHE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":25,"County":"Schoharie","ShortName":"SCHO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":26,"County":"Sullivan","ShortName":"SULL","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":27,"County":"Ulster","ShortName":"ULST","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":28,"County":"Warren","ShortName":"WARR","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":29,"County":"Washington","ShortName":"WASH","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":30,"County":"Allegany","ShortName":"ALLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":31,"County":"Cattaraugus","ShortName":"CATT","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":32,"County":"Chautauqua","ShortName":"CHAU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":33,"County":"Chemung","ShortName":"CHEM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":34,"County":"Erie","ShortName":"ERIE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":35,"County":"Genesee","ShortName":"GENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":36,"County":"Livingston","ShortName":"LIVI","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":37,"County":"Monroe","ShortName":"MONR","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":38,"County":"Niagara","ShortName":"NIAG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":39,"County":"Ontario","ShortName":"ONTA","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":40,"County":"Orleans","ShortName":"ORLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":41,"County":"Schuyler","ShortName":"SCHU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":42,"County":"Seneca","ShortName":"SENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":43,"County":"Steuben","ShortName":"STEU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":44,"County":"Wayne","ShortName":"WAYN","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":45,"County":"Wyoming","ShortName":"WYOM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":46,"County":"Yates","ShortName":"YATE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":47,"County":"Broome","ShortName":"BROO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":48,"County":"Chenango","ShortName":"CHEN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":49,"County":"Cortland","ShortName":"CORT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":50,"County":"Delaware","ShortName":"DELA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":51,"County":"Herkimer","ShortName":"HERK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":52,"County":"Jefferson","ShortName":"JEFF","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":53,"County":"Lewis","ShortName":"LEWI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":54,"County":"Madison","ShortName":"MADI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":55,"County":"Oneida","ShortName":"ONEI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":56,"County":"Onondaga","ShortName":"ONON","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":57,"County":"Oswego","ShortName":"OSWE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":58,"County":"Otsego","ShortName":"OTSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":59,"County":"St. Lawrence","ShortName":"ST L","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":60,"County":"Cayuga","ShortName":"CAYU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":61,"County":"Tioga","ShortName":"TIOG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":62,"County":"Tompkins","ShortName":"TOMP","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.6","ModifiedBy":null,"ModifiedDate":null}],"name":"countyzone","schema":[{"columnName":"CountyId","dataType":"int","maxLenght":null,"isRequired":true},{"columnName":"County","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ShortName","dataType":"nvarchar","maxLenght":10,"isRequired":false},{"columnName":"ZoneNo","dataType":"int","maxLenght":null,"isRequired":false},{"columnName":"IsActive","dataType":"bit","maxLenght":null,"isRequired":false},{"columnName":"CreatedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"CreatedDate","dataType":"datetime","maxLenght":null,"isRequired":false},{"columnName":"ModifiedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ModifiedDate","dataType":"datetime","maxLenght":null,"isRequired":false}]}
127
* configure continueOnStepFailure = true
0
128
Then status 200
0
129
And def values = response.values
0
130
* configure continueOnStepFailure = true
0
291
* def countyData = karate.jsonPath(values, "$[?(@.CountyId == '" + CountyId + "')]")
0
292
* def countyZone = countyData[0].ZoneNo
0
293
And print countyZone
0
19:22:04.843 [print] 1
294
Given path '/internalapi/api/licensing/selectapptype/savenewlicenseapp'
0
295
* def dbSts = db.cleanHeap()
143
296
And header authorization = 'Bearer ' + strToken
0
297
And header Content-Type = 'application/json; charset=utf-8'
0
298
And header Accept = 'application/json; text/plain;*/*'
0
#* def CountysId = <countyIds>
# And print CountysId
#* string CountysName = <countynames>
# And print CountysName
#* def mainLicensePermitTypeId = <LicensePermitTypeId>
# And print mainLicensePermitTypeId
#* string ProductType = <ProductTypes>
#* string LicenseDescription = <LicDescription>
# And print ProductType
309
And request {"mainLicensePermitTypeId":'#(mainLicensePermitTypeId)',"newPermitTypeIds":[],"combinedCraftId":null,"masterFileId":null,"isApplicableForTempPermit":false,"isNotQualified":false,"isChainRestaurant":false,"addBarList":[],"countyId":'#(CountyId)',"isApplicantCurrentLicensed":false,"isExistingManufacturer":false,"selectedLicense":null,"isAssociatedTempPermit":false}
0
311
When method post
205
19:22:04.987 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/selectapptype/savenewlicenseapp 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 327 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"mainLicensePermitTypeId":40,"newPermitTypeIds":[],"combinedCraftId":null,"masterFileId":null,"isApplicableForTempPermit":false,"isNotQualified":false,"isChainRestaurant":false,"addBarList":[],"countyId":1,"isApplicantCurrentLicensed":false,"isExistingManufacturer":false,"selectedLicense":null,"isAssociatedTempPermit":false} 19:22:05.191 response time in milliseconds: 204 1 < 200 1 < Content-Length: 234 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:02 GMT [{"childAppId":null,"mainApplicationId":"NA-0111-22-119055","childApplicationId":null,"licensePermitTypeId":40,"description":"Restaurant-Beer","parentApplicationId":"NA-0111-22-119055","parentAppId":13858,"appId":13858,"formId":1165}]
312
* configure continueOnStepFailure = true
0
313
Then status 200
0
315
And def ApplicationId = response[0].mainApplicationId
0
316
And print ApplicationId
0
19:22:05.192 [print] NA-0111-22-119055
317
And match ApplicationId contains 'NA-'
0
319
* def currentYear = '-'+getYearFunc()+'-'+countyZone
1
320
And match ApplicationId contains currentYear
0
321
And def description = response[0].description
0
323
And def appId = response[0].appId
0
325
* def formId = response[0].formId
0
326
* def FormVersionId = response[0].FormVersionId
0
328
Given path '/internalapi/api/application/preview/'+appId
0
329
* def dbSts = db.cleanHeap()
157
330
And header authorization = 'Bearer ' + strToken
0
331
And header Content-Type = 'application/json; charset=utf-8'
0
332
And header Accept = 'application/json; text/plain;*/*'
0
333
And configure continueOnStepFailure = true
0
334
And request {}
0
335
When method get
162
19:22:05.352 request: 2 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13858 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > Content-Length: 2 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {} 19:22:05.513 response time in milliseconds: 161 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:52:02 GMT 2 < Content-Length: 185 {"applicationId":"NA-0111-22-119055","submitDate":null,"licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Draft"},"isLicenseApplication":true,"isPreFilled":false}
336
* configure continueOnStepFailure = true
0
337
Then status 200
0
338
And def licStatus = response.appStatus.statusDescription
0
339
And print licStatus
0
19:22:05.514 [print] Draft
340
And match licStatus == 'Draft'
0
586
* def CountyName = "New York"
0
587
* call read('LicensesCommonMethods.feature@FillAndSaveApplicantInformationPage') {county:'#(CountyName)'}
709
>>
karate.UseCases.LicensesCommonMethods
206
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
700
* def getDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
709
Given path '/internalapi/api/licensing/app/static/applicantinfo/save/'+appId
0
710
And header Content-Type = 'application/json; charset=utf-8'
0
712
* def autoFirstName = firstName + getDate()
0
713
* def legalName = autoFirstName + lastName
0
714
And header Accept = 'application/json; text/plain;*/*'
0
715
And header authorization = 'Bearer ' + strToken
0
716
And request {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":'#(indOrgCode)',"corporateStructure":'#(CorporateStructureDropDownCode)',"firstName":'#(autoFirstName)',"lastName":'#(lastName)',"middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":'#(legalName)',"id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":'#(IndOrgSelectionDropDown)',"corporateStructureText":'#(CorporateStructureDropDown)',"isIndividual":'#(isIndStatus)'},"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"2","phoneTypeText":"Office","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}}
0
717
When method post
203
19:22:06.036 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/applicantinfo/save/13858 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2167 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":1,"corporateStructure":1,"firstName":"Automation20221115192206","lastName":"Automation","middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":"Automation20221115192206Automation","id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":"Individual","corporateStructureText":"Individual","isIndividual":true},"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"2","phoneTypeText":"Office","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}} 19:22:06.236 response time in milliseconds: 200 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:03 GMT 1 < Content-Length: 2191 {"businessInfo":{"id":0,"website":null,"isLicensed":false,"isAssociated":false,"businessEntity":{"id":3987,"individualOrganization":"1","corporateStructure":1,"isEmployeeForSoleProprietor":null,"firstName":"Automation20221115192206","lastName":"Automation","middleName":"AutoMidName","ssn":"","fein":"","legalName":"Automation20221115192206Automation","suffix":"1","corporateStructureText":"Individual","individualOrganizationText":"Individual","isIndividual":true},"address":{"addressId":29331,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"US","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"NY","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25243,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":7788,"phoneType":3,"countryCode":"91","phone":"999-999-9999","phoneExtension":"1234"}]}},"premisesInfo":{"id":13159,"dba":null,"countyId":1,"countyName":"New York","isDbaSearched":null,"isPremisesRequired":true,"licensePermitID":"","address":{"addressId":29332,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"US","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"NY","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25244,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":7789,"phoneType":2,"countryCode":"+91","phone":"999-999-9999","phoneExtension":"1234"}]}},"applicantDetail":{"id":9751,"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"isPhysicalChange":null,"applicantStatement":{"id":4292,"nameOfApplicant":null,"title":null,"signature":null,"date":null}}}
718
Then status 200
0
588
* call read('LicensesCommonMethods.feature@FillAndSavePrincipalPage') {}
755
>>
karate.UseCases.LicensesCommonMethods
214
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
745
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
754
Given path '/internalapi/api/licensing/app/static/principal/save/'+appId
0
755
And header Content-Type = 'application/json; charset=utf-8'
0
756
* def prncipalName = firstName + getDate1()
0
757
* def dt = licDate()
0
758
And header Accept = 'application/json; text/plain;*/*'
0
759
And header authorization = 'Bearer ' + strToken
0
760
And request {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":'#(convictedOfCrime)',"percentageOfOwners":'#(percentageOfOwners)',"isFingerprintRequired":'#(isFingerprintRequired)',"isFingerprintsApproved":'#(isFingerprintsApproved)',"title":"15","numberOfShares":"","isSignature":false,"date":'#(dt)',"address":{"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"stateId":'#(stateCode)',"county":'#(CountyName)',"city":"New York","zipCode":'#(zipCode)',"zip4":'#(postalCode)',"country":'#(countryName)',"stateName":'#(CityName)',"countryId":229,"zip":'#(zipCode)'},"person":{"personId":0,"firstName":'#(prncipalName)',"middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":'#(dt)',"age":"","choosedEntity":null,"ssnFormat":"","suffixText":"JR"},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":'#(emailId)',"confirmEmail":'#(emailId)'},"titleText":"Vice President","convictedOfCrimeText":"No","disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
0
# {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":"" ,"percentageOfOwners":"" ,"isFingerprintRequired":true ,"isFingerprintsApproved":true ,"title":"","dcjsFingerPrintStatus":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"","addressLine2":"","stateId":40,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"New York","countryId":229,"zip":""},"person":{"personId":0,"firstName":"XA","middleName":"","lastName":"sa","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":null,"confirmEmail":null},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
762
When method post
212
19:22:06.781 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/save/13858 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 1107 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":"1","percentageOfOwners":"20","isFingerprintRequired":true,"isFingerprintsApproved":true,"title":"15","numberOfShares":"","isSignature":false,"date":"2022-11-15T19:22:06.781Z","address":{"addressLine1":"Address1","addressLine2":"Address2","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation20221115192206","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T19:22:06.781Z","age":"","choosedEntity":null,"ssnFormat":"","suffixText":"JR"},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":"automation@svam.com","confirmEmail":"automation@svam.com"},"titleText":"Vice President","convictedOfCrimeText":"No","disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]} 19:22:06.992 response time in milliseconds: 211 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:03 GMT 1 < Content-Length: 1390 {"entities":[],"principals":[{"principalId":3281,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":true,"isFingerprintsApproved":true,"percentageOfOwners":20.0,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","entities":null,"numberOfShares":"","isSignature":false,"isRemove":false,"date":"2022-11-15T00:00:00","convictedOfCrime":"1","title":"15","isLicensed":false,"isAssociated":false,"person":{"personId":5572,"firstName":"Automation20221115192206","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T00:00:00","serialNo":0,"age":0,"choosedEntity":[]},"address":{"addressId":29333,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25245,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
763
Then status 200
0
589
* call read('LicensesCommonMethods.feature@FillAndSaveRepresentativePage') {}
717
>>
karate.UseCases.LicensesCommonMethods
161
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Representative *********************
790
Given path '/internalapi/api/licensing/app/static/rep/save/'+appId
0
791
And header authorization = 'Bearer ' + strToken
0
792
And request {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":'#(CountyName)',"city":'#(CityName)',"zipCode":"10011","country":"United States (US)","stateName":'#(CityName)',"countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""}
0
793
When method post
157
19:22:07.565 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/rep/save/13858 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 897 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":"New York","city":"New York","zipCode":"10011","country":"United States (US)","stateName":"New York","countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""} 19:22:07.720 response time in milliseconds: 155 1 < 200 1 < Content-Length: 4 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:05 GMT true
794
Then status 200
0
795
And def serverResponse = response
0
590
* call read('LicensesCommonMethods.feature@FillAndSaveMethodOfOperationPage') {}
1226
>>
karate.UseCases.LicensesCommonMethods
205
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
6389
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
6398
Given path '/internalapi/api/licensing/app/save'
0
6399
And header Content-Type = 'application/json; charset=utf-8'
0
6400
* def prncipalName = firstName + getDate1()
1
6401
* def dt = licDate()
0
6402
And header Accept = 'application/json; text/plain;*/*'
0
6403
And header authorization = 'Bearer ' + strToken
0
6404
And request {"isApproved":false,"appId":'#(appId)',"formID":1165,"applicationID":"","formName":"","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":1,"formCategory":{},"formCategoryId":1,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and Policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1993,"key":"","label":"Will the business employ a manager?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1994,"key":"","label":"If no, will the principals manage?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1995,"key":"","label":"If Premises is not a caterer establishment, will the premises periodically close to host private events?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1996,"key":"","label":"If Yes, How Frequently?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"Yes","fieldID":1997,"key":"","label":"Will the premises have music?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1998,"key":"","label":"If Live Music, Give Details","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1999,"key":"","label":"Will the premises use the service of an event promoter?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2000,"key":"","label":"Will the Premises Permit Dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2001,"key":"","label":"Will there be exotic dancing, including but not limited to topless entertainment, pole dancing and or lap dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2002,"key":"","label":"Will there be topless entertainment?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":16,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2003,"key":"","label":"Will Security Personnel be used at the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":17,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2004,"key":"","label":"How many?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":18,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2005,"key":"","label":"Provide your proprietary security guard employer unique Identification number assigned to the business by the NYS Department of State Division of Licensing Services or the name of the security company through which the security personnel will be hired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":19,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2006,"key":"","label":"Provide a detailed plan of supervision for the premises to be licensed. Clearly describe how you will maintain control and order over the licensed premises. How will you monitor alcohol sales and prevent sales to minors and sales to intoxicated persons? How will you handle unruly patrons, altercations, etc., to prevent the premises from becoming disorderly?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":20,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2007,"key":"","label":"Are all responses provided in the application consistent with the information provided to the municipality or community board within the standardized notice form for providing thirty day advance notice","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":21,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2008,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":22,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"4","fieldID":2051,"key":"","label":"If Yes, check all that apply","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2052,"key":"","label":"Who will be permitted to dance?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"Method_of_Operation","key":"0","label":"Method Of Operation","order":11,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isStatic":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"parentSection":"","subSections":[],"sectionFieldOrders":[],"address":{"addressLine1":"","addressLine2":"","stateId":null,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"","countryId":229}}],"formVersionId":1699,"version":25,"licenseDescription":"Restaurant-Beer","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"showAbcOfficer":false,"showCorpChange":false,"showEndorsement":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant_Information","Principal","Representative","Landlord_Identification","Personal_Questionnaire"],"showPQ":true,"showCC":false,"showManuOnPrem":false,"licPermitTypeId":40,"tabVisitied":{"Applicant Information":false,"Principal":false,"Representative":false,"Landlord Identification":false,"Personal Questionnaire":false}}
1
6406
When method post
198
19:22:08.755 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 12993 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13858,"formID":1165,"applicationID":"","formName":"","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":1,"formCategory":{},"formCategoryId":1,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and Policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1993,"key":"","label":"Will the business employ a manager?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1994,"key":"","label":"If no, will the principals manage?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1995,"key":"","label":"If Premises is not a caterer establishment, will the premises periodically close to host private events?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1996,"key":"","label":"If Yes, How Frequently?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"Yes","fieldID":1997,"key":"","label":"Will the premises have music?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1998,"key":"","label":"If Live Music, Give Details","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1999,"key":"","label":"Will the premises use the service of an event promoter?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2000,"key":"","label":"Will the Premises Permit Dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2001,"key":"","label":"Will there be exotic dancing, including but not limited to topless entertainment, pole dancing and or lap dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2002,"key":"","label":"Will there be topless entertainment?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":16,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2003,"key":"","label":"Will Security Personnel be used at the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":17,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2004,"key":"","label":"How many?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":18,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2005,"key":"","label":"Provide your proprietary security guard employer unique Identification number assigned to the business by the NYS Department of State Division of Licensing Services or the name of the security company through which the security personnel will be hired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":19,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2006,"key":"","label":"Provide a detailed plan of supervision for the premises to be licensed. Clearly describe how you will maintain control and order over the licensed premises. How will you monitor alcohol sales and prevent sales to minors and sales to intoxicated persons? How will you handle unruly patrons, altercations, etc., to prevent the premises from becoming disorderly?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":20,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2007,"key":"","label":"Are all responses provided in the application consistent with the information provided to the municipality or community board within the standardized notice form for providing thirty day advance notice","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":21,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2008,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":22,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"4","fieldID":2051,"key":"","label":"If Yes, check all that apply","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2052,"key":"","label":"Who will be permitted to dance?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"Method_of_Operation","key":"0","label":"Method Of Operation","order":11,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isStatic":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"parentSection":"","subSections":[],"sectionFieldOrders":[],"address":{"addressLine1":"","addressLine2":"","stateId":null,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"","countryId":229}}],"formVersionId":1699,"version":25,"licenseDescription":"Restaurant-Beer","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"showAbcOfficer":false,"showCorpChange":false,"showEndorsement":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant_Information","Principal","Representative","Landlord_Identification","Personal_Questionnaire"],"showPQ":true,"showCC":false,"showManuOnPrem":false,"licPermitTypeId":40,"tabVisitied":{"Applicant Information":false,"Principal":false,"Representative":false,"Landlord Identification":false,"Personal Questionnaire":false}} 19:22:08.949 response time in milliseconds: 193 1 < 200 1 < Content-Length: 51 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:06 GMT {"appId":13858,"applicationId":"NA-0111-22-119055"}
6407
Then status 200
0
591
* call read('LicensesCommonMethods.feature@FeesValidation') {amount:'#(totalFees)'}
4152
>>
karate.UseCases.LicensesCommonMethods
2119
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
810
* def futureDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
820
* def futureDate = futureDateFunc()
1
822
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
832
* def date = getDate2()
0
834
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
835
And header Content-Type = 'application/json; charset=utf-8'
0
836
And header Accept = 'application/json; text/plain;*/*'
0
837
And header authorization = 'Bearer ' + strToken
0
838
And request {}
0
839
When method get
243
19:22:10.972 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13858 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:22:11.215 response time in milliseconds: 243 1 < 200 1 < Content-Length: 658 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:08 GMT [{"licenseName":"Restaurant - Beer","applicationId":"NA-0111-22-119055","applicationTypeId":1,"appFeesId":0,"appId":13858,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":0.0,"totalFees":0.0,"filingFees":100.00,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
840
Then status 200
0
841
And def serverResponse = response
0
842
* def licTerm = serverResponse[0].term
0
843
* def licFees = serverResponse[0].licensingFees+''
0
844
* def licTermDesc = serverResponse[0].termDesc
0
845
* def licFeesRefId = serverResponse[0].feesRefId
0
846
* def licAncillaryFees = serverResponse[0].ancillaryFees+''
0
847
* def licfilingFees = serverResponse[0].filingFees+''
0
848
* def licInitialFees = serverResponse[0].initialFees
0
849
* def bndFees = serverResponse[0].bondFee
0
850
* def isBondRequired = serverResponse[0].isBondRequired
0
851
And def totalFees = serverResponse[0].licensingFees+serverResponse[0].filingFees
0
852
And print totalFees
0
19:22:11.216 [print] 1060.0
855
Given path '/internalapi/api/notification/SaveNotification'
0
857
And header Content-Type = 'application/json; charset=utf-8'
0
858
And header Accept = 'application/json; text/plain;*/*'
0
859
And header authorization = 'Bearer ' + strToken
0
860
And request {"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}
0
861
When method post
151
19:22:11.218 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/notification/SaveNotification 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 2006 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13858,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13858,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13858,"createdBy":"Tarun Gupta"} 19:22:11.367 response time in milliseconds: 149 2 < 200 2 < Content-Length: 5 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:52:08 GMT false
862
Then status 200
0
863
And print response
0
19:22:11.369 [print] false
# And header Content-Type = 'application/json; charset=utf-8'
869
Given path 'internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
871
And header Accept = 'application/json; text/plain;*/*'
0
872
And header authorization = 'Bearer ' + strToken
0
874
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":'#(amount)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":"0.00","totalFees":'#(totalFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(licTerm)',"termDesc":'#(licTermDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
1
875
When method post
228
19:22:11.372 request: 3 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13858/false 3 > Accept: application/json; text/plain;*/* 3 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 3 > Content-Type: application/json; charset=UTF-8 3 > Content-Length: 5071 3 > Host: slaleapqaapi.svam.com 3 > Connection: Keep-Alive 3 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 3 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13858,"slaintakeDate":"2022-11-15T19:22:10.971Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:22:10.971Z","amount":1060}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119055","applicationTypeId":1,"appFeesId":0,"appId":13858,"feesRefId":6039,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"0.00","totalFees":1060.0,"filingFees":"100","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":1060.0,"amountReceived":"0.00","waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-11-22T19:22:10.968Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13858,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13858,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13858,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13858,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13858,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13858,"createdBy":"Tarun Gupta"},"taskId":null} 19:22:11.597 response time in milliseconds: 225 3 < 200 3 < Content-Type: application/json; charset=utf-8 3 < Server: Microsoft-IIS/10.0 3 < Strict-Transport-Security: max-age=2592000 3 < X-Powered-By: ASP.NET 3 < Date: Tue, 15 Nov 2022 13:52:08 GMT 3 < Content-Length: 4 true
876
Then status 200
0
878
Given path 'internalapi/api/licensing/fees/check-payments/get/'+appId
0
879
And header authorization = 'Bearer ' + strToken
0
880
And request {}
0
881
When method get
161
19:22:11.598 request: 4 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/check-payments/get/13858 4 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 4 > Content-Type: application/json; charset=UTF-8 4 > Content-Length: 2 4 > Host: slaleapqaapi.svam.com 4 > Connection: Keep-Alive 4 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 4 > Accept-Encoding: gzip,deflate {} 19:22:11.759 response time in milliseconds: 161 4 < 200 4 < Content-Length: 440 4 < Content-Type: application/json; charset=utf-8 4 < Server: Microsoft-IIS/10.0 4 < Strict-Transport-Security: max-age=2592000 4 < X-Powered-By: ASP.NET 4 < Date: Tue, 15 Nov 2022 13:52:08 GMT [{"checkDetailId":2340,"appId":13858,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T00:00:00","slaintakeDate":"2022-11-15T00:00:00","amount":1060.0000,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T08:52:08.9","modifiedBy":null,"modifiedDate":null}]
882
Then status 200
0
883
And def checkDetailId = response[0].checkDetailId
0
884
And print checkDetailId
0
19:22:11.760 [print] 2340
885
* def amount = response[0].amount
0
886
* def underpaidAmount = totalFees-amount
0
888
And print 'underpaidAmount- ',underpaidAmount
0
19:22:11.760 [print] underpaidAmount- 0.0
890
Given path '/internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
891
And header Content-Type = 'application/json; charset=utf-8'
0
892
* def futureDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
903
* def futureDate = futureDateFunc()
1
904
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
913
* def date = getDate2()
0
915
And header Accept = 'application/json; text/plain;*/*'
0
916
And header authorization = 'Bearer ' + strToken
0
917
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":'#(totalFees)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":'#(licInitialFees)',"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":'#(renewalFees)',"totalFees":'#(totalFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":'#(licAncillaryFees)',"isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
1
920
When method post
215
19:22:11.763 request: 5 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13858/false 5 > Content-Type: application/json; charset=utf-8 5 > Accept: application/json; text/plain;*/* 5 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 5 > Content-Length: 5068 5 > Host: slaleapqaapi.svam.com 5 > Connection: Keep-Alive 5 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 5 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13858,"slaintakeDate":"2022-11-15T19:22:11.761Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:22:11.761Z","amount":1060.0}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119055","applicationTypeId":1,"appFeesId":0,"appId":13858,"feesRefId":6039,"initialFees":0.0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"30","totalFees":1060.0,"filingFees":"100","ancillaryFees":"0","isFeesWaived":false,"underPaymentAmount":1060.0,"amountReceived":"0.00","waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-11-22T19:22:10.968Z","emailNotificationDetail":{"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13858,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13858,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13858,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13858,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13858,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13858,"createdBy":"Tarun Gupta"},"taskId":null} 19:22:11.977 response time in milliseconds: 214 5 < 200 5 < Content-Length: 4 5 < Content-Type: application/json; charset=utf-8 5 < Server: Microsoft-IIS/10.0 5 < Strict-Transport-Security: max-age=2592000 5 < X-Powered-By: ASP.NET 5 < Date: Tue, 15 Nov 2022 13:52:08 GMT true
921
Then status 200
0
# ********* SAVE Application Details To Save *********************
928
Given path '/internalapi/api/licensing/app/save'
0
929
And header authorization = 'Bearer ' + strToken
0
930
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":'#(CityName)',"fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
1
931
When method post
304
19:22:11.983 request: 6 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 6 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 6 > Content-Type: application/json; charset=UTF-8 6 > Content-Length: 30721 6 > Host: slaleapqaapi.svam.com 6 > Connection: Keep-Alive 6 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 6 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13858,"formID":1165,"applicationID":"NA-0111-22-119055","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:22:12.282 response time in milliseconds: 298 6 < 200 6 < Content-Length: 51 6 < Content-Type: application/json; charset=utf-8 6 < Server: Microsoft-IIS/10.0 6 < Strict-Transport-Security: max-age=2592000 6 < X-Powered-By: ASP.NET 6 < Date: Tue, 15 Nov 2022 13:52:09 GMT {"appId":13858,"applicationId":"NA-0111-22-119055"}
932
Then status 200
0
935
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
936
And header authorization = 'Bearer ' + strToken
0
937
And header Content-Type = 'application/json; charset=utf-8'
0
938
And header Accept = 'application/json; text/plain;*/*'
0
939
And request ""
0
940
When method get
231
19:22:12.285 request: 7 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13858 7 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 7 > Content-Type: application/json; charset=utf-8 7 > Accept: application/json; text/plain;*/* 7 > Content-Length: 0 7 > Host: slaleapqaapi.svam.com 7 > Connection: Keep-Alive 7 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 7 > Accept-Encoding: gzip,deflate 19:22:12.514 response time in milliseconds: 229 7 < 200 7 < Content-Type: application/json; charset=utf-8 7 < Server: Microsoft-IIS/10.0 7 < Strict-Transport-Security: max-age=2592000 7 < X-Powered-By: ASP.NET 7 < Date: Tue, 15 Nov 2022 13:52:09 GMT 7 < Content-Length: 660 [{"licenseName":"Restaurant - Beer","applicationId":"NA-0111-22-119055","applicationTypeId":1,"appFeesId":3077,"appId":13858,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":0.0,"totalFees":0.0,"filingFees":100.00,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
941
Then status 200
0
942
And print response[0].appFeesId
0
19:22:12.515 [print] 3077
943
And def appFeesId1 = response[0].appFeesId
0
944
And def feesRefId1 = response[0].feesRefId
0
945
And print appFeesId1
0
19:22:12.515 [print] 3077
946
And print feesRefId1
0
19:22:12.515 [print] 6039
947
And def applicationTypeId = response[0].applicationTypeId
0
948
And print applicationTypeId
0
19:22:12.516 [print] 1
# ********* Save PAYMENT *********************
951
Given path '/internalapi/api/licensing/fees/details/save/'+appId +'/false'
0
953
* def slaDate = licFeesDate()
1
954
* def slaaDate = licDate()
0
955
* def licInitialFees1 = licInitialFees+''
0
956
And print licInitialFees1
0
19:22:12.517 [print] 0
957
* def renewalFees1 = renewalFees+''
0
958
And print renewalFees1
0
19:22:12.517 [print] 30
959
* def totalFees1 = totalFees+''
0
961
And print totalFees1
0
19:22:12.517 [print] 1060
962
* def licAncillaryFees1 = licAncillaryFees+''
0
963
* def licfilingFees1 = licfilingFees+''
0
965
And header authorization = 'Bearer ' + strToken
0
966
And request {"checks":[{"checkDetailId":'#(checkDetailId)',"appId":'#(appId)',"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":'#(date)',"slaintakeDate":'#(date)',"amount":'#(amount)',"appliedTo":null,"amountUsed":'#(amount)',"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":'#(date)',"modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":'#(licFeesRefId)',"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":"0.00","totalFees":'#(totalFees1)',"filingFees":'#(licfilingFees1)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(underpaidAmount)',"amountReceived":'#(amount)',"waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":'#(appId)',"checkDetailId":'#(checkDetailId)',"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":'#(amount)',"amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
0
971
When method post
287
19:22:12.519 request: 8 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13858/false 8 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 8 > Content-Type: application/json; charset=UTF-8 8 > Content-Length: 5458 8 > Host: slaleapqaapi.svam.com 8 > Connection: Keep-Alive 8 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 8 > Accept-Encoding: gzip,deflate {"checks":[{"checkDetailId":2340,"appId":13858,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T19:22:11.761Z","slaintakeDate":"2022-11-15T19:22:11.761Z","amount":1060.0,"appliedTo":null,"amountUsed":1060.0,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T19:22:11.761Z","modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119055","applicationTypeId":1,"appFeesId":6039,"appId":13858,"feesRefId":6039,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"0.00","totalFees":"1060","filingFees":"100","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":1060.0,"waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":13858,"checkDetailId":2340,"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":1060.0,"amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":"2022-11-22T19:22:10.968Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13858,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13858,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13858,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13858,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13858,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13858,"createdBy":"Tarun Gupta"},"taskId":null} 19:22:12.805 response time in milliseconds: 286 8 < 200 8 < Content-Length: 4 8 < Content-Type: application/json; charset=utf-8 8 < Server: Microsoft-IIS/10.0 8 < Strict-Transport-Security: max-age=2592000 8 < X-Powered-By: ASP.NET 8 < Date: Tue, 15 Nov 2022 13:52:09 GMT true
972
Then status 200
0
973
And print response
0
19:22:12.805 [print] true
# ********* SAVE Application Details To Save *********************
978
Given path '/internalapi/api/licensing/app/save'
0
979
And header authorization = 'Bearer ' + strToken
0
980
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":'#(CityName)',"fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
3
981
When method post
281
19:22:12.818 request: 9 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 9 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 9 > Content-Type: application/json; charset=UTF-8 9 > Content-Length: 30721 9 > Host: slaleapqaapi.svam.com 9 > Connection: Keep-Alive 9 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 9 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13858,"formID":1165,"applicationID":"NA-0111-22-119055","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:22:13.091 response time in milliseconds: 271 9 < 200 9 < Content-Type: application/json; charset=utf-8 9 < Server: Microsoft-IIS/10.0 9 < Strict-Transport-Security: max-age=2592000 9 < X-Powered-By: ASP.NET 9 < Date: Tue, 15 Nov 2022 13:52:09 GMT 9 < Content-Length: 51 {"appId":13858,"applicationId":"NA-0111-22-119055"}
982
Then status 200
0
983
And def serverResponse = response
0
593
* call read('LicensesCommonMethods.feature@SubmitLicenseAndValidateLicStatus') {expStatus:'Awaiting Review'}
8634
>>
karate.UseCases.LicensesCommonMethods
6220
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
3
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
2
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Application SUBMIT *********************
1099
Given path '/internalapi/api/licensing/app/submit'
0
1100
And header authorization = 'Bearer ' + strToken
0
1101
And request {"appId":'#(appId)',"wfType":null}
0
1102
When method post
304
19:22:15.428 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/submit 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 29 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"appId":13858,"wfType":null} 19:22:15.730 response time in milliseconds: 302 1 < 200 1 < Content-Length: 123 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:13 GMT {"success":true,"submittedApps":[{"success":true,"taskId":0,"appId":13858,"applicationId":"NA-0111-22-119055","error":""}]}
1103
Then status 200
0
1104
And def serverResponse = response
0
1105
And match response.success == true
2
1106
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
5904
>>
karate.UseCases.LicensesCommonMethods
2275
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
1
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
2
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
4
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
2
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
1
1195
* def dbSts = db.cleanHeap()
2106
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
155
19:22:21.379 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13858 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:22:21.533 response time in milliseconds: 154 1 < 200 1 < Content-Length: 215 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:18 GMT {"applicationId":"NA-0111-22-119055","submitDate":"2022-11-15T08:52:12.94","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:22:21.533 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1
594
* call read('LicensesCommonMethods.feature@AssignApplicationsToExaminer') {}
5051
>>
karate.UseCases.LicensesCommonMethods
1942
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* AssignApplicationsSaveDigestDataToExaminer *********************
1139
Given path '/internalapi/api/licensing/examiner/assignApplicationsToExaminer'
0
1140
And header authorization = 'Bearer ' + strToken
0
1141
And request [{"appId":'#(appId)',"examinerId":1069,"priority":"Normal"}]
0
1142
When method post
228
19:22:24.847 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/examiner/assignApplicationsToExaminer 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 55 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate [{"appId":13858,"examinerId":1069,"priority":"Normal"}] 19:22:25.074 response time in milliseconds: 227 1 < 200 1 < Content-Length: 5 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:22 GMT false
1143
And def serverResponse = response
0
1144
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
1711
>>
karate.UseCases.LicensesCommonMethods
425
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
267
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
154
19:22:26.627 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13858 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:22:26.780 response time in milliseconds: 153 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:24 GMT 1 < Content-Length: 215 {"applicationId":"NA-0111-22-119055","submitDate":"2022-11-15T08:52:12.94","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:22:26.780 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
0
595
* call read('LicensesCommonMethods.feature@ExaminerReviewApprovalToLB') {}
3083
>>
karate.UseCases.LicensesCommonMethods
2523
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Examiner Review Approval to LB *********************
1149
* def summisionDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS"); var date = new java.util.Date(); return sdf.format(date); }
1157
Given path '/internalapi/api/licensing/examiner-review/SaveNewLicense'
0
1158
* def formatedSumbitDate = summisionDate()
0
1159
And header authorization = 'Bearer ' + strToken
0
1160
And header current-wfroleid = 4
0
1161
And request {"isFingerPrintsApproved":false,"isFingerPrintsRequired":false,"isCorpLLCDissolved":false,"isCorpLLCDTaken":false,"isSendPDLetter":false,"isDisable500LB_FBPT":false,"isDisableLBForPD":false,"isDisableLBForCaseClosed":false,"isDisableLateRenewalAndUnderpayment":false,"isLiquidatorPermitHasCompleted":-1,"isSubmit":true,"fieldDeficiencies":[],"masterFileData":[],"combinedCraftData":[],"application":{"applicationCategory":1,"appId":'#(appId)',"applicationId":'#(ApplicationId)',"licePermitTypeId":null,"applicationTypeId":1,"formVersionId":1231,"formId":'#(formId)',"legalName":'#(legalName)',"submitDate":'#(formatedSumbitDate)',"isGISRequired":null,"licenseDescription":'#(description)',"recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":'#(CityName)',"priority":"Normal","expirationDate":null,"appStatusId":3,"taskStatus":"Awaiting Review","taskId":1026,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":true,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":false,"isNotQualified":false,"eventDate":null,"appStatus":{"appStatusId":3,"statusDescription":"Under Review","isActive":true,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":{"appExaminerId":1069,"appId":'#(appId)',"examinerId":1069,"name":null,"assignDate":'#(formatedSumbitDate)',"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"assignAppToLB":null,"licePermitType":{"licPermitTypeId":'#(mainLicensePermitTypeId)',"type":"1","category":"1","product":'#(productName)',"class":null,"description":null,"sectionOfLaw":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isTempPermit":false,"isELicensingPermit":false,"isAdditionalBar":false},"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":'#(mainLicensePermitTypeId)',"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":true,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":'#(formatedSumbitDate)'},"appId":'#(appId)',"notificationTypeId":2028,"applicationType":1,"decisionType":{"name":"Send to Licensing Board","value":2},"emailNotificationModel":{"applicant":{},"attorney":{},"communityBoard":{},"other":{}},"hasErrors":[],"taskId":1026,"newComments":"","recommendedDecisionId":null};
0
1162
When method post
289
19:22:27.350 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/examiner-review/SaveNewLicense 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > current-wfroleid: 4 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 3055 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isFingerPrintsApproved":false,"isFingerPrintsRequired":false,"isCorpLLCDissolved":false,"isCorpLLCDTaken":false,"isSendPDLetter":false,"isDisable500LB_FBPT":false,"isDisableLBForPD":false,"isDisableLBForCaseClosed":false,"isDisableLateRenewalAndUnderpayment":false,"isLiquidatorPermitHasCompleted":-1,"isSubmit":true,"fieldDeficiencies":[],"masterFileData":[],"combinedCraftData":[],"application":{"applicationCategory":1,"appId":13858,"applicationId":"NA-0111-22-119055","licePermitTypeId":null,"applicationTypeId":1,"formVersionId":1231,"formId":1165,"legalName":"Automation20221115192206Automation","submitDate":"2022-11-15T19:22:27.349","isGISRequired":null,"licenseDescription":"Restaurant-Beer","recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":"New York","priority":"Normal","expirationDate":null,"appStatusId":3,"taskStatus":"Awaiting Review","taskId":1026,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":true,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":false,"isNotQualified":false,"eventDate":null,"appStatus":{"appStatusId":3,"statusDescription":"Under Review","isActive":true,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":{"appExaminerId":1069,"appId":13858,"examinerId":1069,"name":null,"assignDate":"2022-11-15T19:22:27.349","isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"assignAppToLB":null,"licePermitType":{"licPermitTypeId":40,"type":"1","category":"1","product":"RestaurantBeer","class":null,"description":null,"sectionOfLaw":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isTempPermit":false,"isELicensingPermit":false,"isAdditionalBar":false},"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":40,"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":true,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":"2022-11-15T19:22:27.349"},"appId":13858,"notificationTypeId":2028,"applicationType":1,"decisionType":{"name":"Send to Licensing Board","value":2},"emailNotificationModel":{"applicant":{},"attorney":{},"communityBoard":{},"other":{}},"hasErrors":[],"taskId":1026,"newComments":"","recommendedDecisionId":null} 19:22:27.638 response time in milliseconds: 288 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:24 GMT 1 < Content-Length: 4 true
1163
Then status 200
0
1164
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
2229
>>
karate.UseCases.LicensesCommonMethods
1608
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
1449
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
155
19:22:29.707 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13858 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:22:29.861 response time in milliseconds: 154 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:27 GMT 1 < Content-Length: 215 {"applicationId":"NA-0111-22-119055","submitDate":"2022-11-15T08:52:12.94","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:22:29.861 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
0
596
* call read('LicensesCommonMethods.feature@LBClaimingQueue') {}
1724
>>
karate.UseCases.LicensesCommonMethods
1113
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* LB Claiming Queue *********************
1249
Given path 'internalapi/api/licensing/claiming-queue/add/'+appId +'/1069'
0
1250
And header authorization = 'Bearer ' + strToken
0
1251
And header current-wfroleid = 5
0
1252
And request {}
0
1253
When method post
155
19:22:30.483 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/claiming-queue/add/13858/1069 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > current-wfroleid: 5 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:22:30.638 response time in milliseconds: 155 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:27 GMT 1 < Content-Length: 4 true
1254
Then status 200
0
1255
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
954
>>
karate.UseCases.LicensesCommonMethods
380
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
229
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
148
19:22:31.440 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13858 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:22:31.588 response time in milliseconds: 148 1 < 200 1 < Content-Length: 215 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:28 GMT {"applicationId":"NA-0111-22-119055","submitDate":"2022-11-15T08:52:12.94","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:22:31.588 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
0
597
* def expirationDate = fundDueDateFunc(10)
1
598
* call read('LicensesCommonMethods.feature@LBApprovalWithDueDate') {approvalName:'Approved', expStatus:'Approved'}
1820
>>
karate.UseCases.LicensesCommonMethods
1261
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* LB Approval *********************
2346
Given path '/internalapi/api/licensing/search/GetEmailNotificationByAppIdAndNotificationTypeId/'+appId+'/0'
0
2347
And header authorization = 'Bearer ' + strToken
0
2348
And request ''
0
2349
When method get
136
19:22:32.155 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/search/GetEmailNotificationByAppIdAndNotificationTypeId/13858/0 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: text/plain; charset=UTF-8 1 > Content-Length: 0 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate 19:22:32.290 response time in milliseconds: 135 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:28 GMT 1 < Content-Length: 1959 {"applicant":{"communicationId":25243,"email":"automation@svam.com","appId":13858,"emailContactTypeId":1,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":25246,"email":"sbandi@svam.com","appId":13858,"emailContactTypeId":2,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null}}
2350
Then status 200
0
2351
And def serverResponse = response
0
2352
* def applicantCommId = serverResponse.applicant.communicationId
0
2353
* def attorneyCommId = serverResponse.attorney.communicationId
0
2355
Given path '/internalapi/api/licensing/new-license/saveDecision'
0
2356
And header authorization = 'Bearer ' + strToken
0
2357
And header current-wfroleid = 5
0
2358
* def getSelectedDecisionFunc =
0
function(value1){ if (value1 == 'Approved'){ return 1; } else if (value1 == 'Disapproved'){ return 2; } else if (value1 == 'Disapproval to Counsel'){ return 3; }else if (value1 == 'Withdrawal'){ return 4; }else if (value1 == 'Conditionally Approved'){ return 5; }else if (value1 == 'FB Decision Required'){ return 6; }else if (value1 == 'Return to Examiner'){ return 7; } else { return 1; } }
2384
* def selectedDecisionCode = getSelectedDecisionFunc(approvalName)
1
2385
And print selectedDecisionCode
0
19:22:32.291 [print] 1
2386
And request {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":'#(appId)',"applicationType":1,"applicationId":'#(ApplicationId)',"legalName":'#(legalName)',"statusId":3,"decisionType":{"name":'#(approvalName)',"value":'#(selectedDecisionCode)'},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":'#(effectiveDate)',"expirationDate":'#(expirationDate)',"stipulations":[],"descriptions":[]}}
0
2388
When method post
265
19:22:32.292 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/new-license/saveDecision 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > current-wfroleid: 5 2 > Content-Type: application/json; charset=UTF-8 2 > Content-Length: 2479 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":13858,"applicationType":1,"applicationId":"NA-0111-22-119055","legalName":"Automation20221115192206Automation","statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":"2022-11-15","expirationDate":"2022-11-25T19:22:31.597Z","stipulations":[],"descriptions":[]}} 19:22:32.557 response time in milliseconds: 265 2 < 200 2 < Content-Length: 4 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:52:28 GMT true
2389
Then status 200
0
2390
And def serverResponse = response
0
2391
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
857
>>
karate.UseCases.LicensesCommonMethods
294
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
138
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
151
19:22:33.254 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13858 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:22:33.403 response time in milliseconds: 149 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:30 GMT 1 < Content-Length: 208 {"applicationId":"NA-0111-22-119055","submitDate":"2022-11-15T08:52:12.94","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Approved"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:22:33.404 [print] Approved
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1
599
* call read('LicensesCommonMethods.feature@ValidateLicenseApplicationStatus') {LicAppStatus:'Approved'}
779
>>
karate.UseCases.LicensesCommonMethods
220
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1326
Given path 'internalapi/api/GenericSearch/SearchLicense'
0
1327
And header Content-Type = 'application/json; charset=utf-8'
0
1328
And header Accept = 'application/json; text/plain;*/*'
0
1329
And header authorization = 'Bearer ' + strToken
0
1330
And params {page:1,pageSize:10}
1
1331
And request [{"dataTypeValue":"Text","key":"ApplicationId","operatorValue":"=","value":'#(ApplicationId)'}]
0
1332
When method post
216
19:22:33.975 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/GenericSearch/SearchLicense?pageSize=10&page=1 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 96 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate [{"dataTypeValue":"Text","key":"ApplicationId","operatorValue":"=","value":"NA-0111-22-119055"}] 19:22:34.190 response time in milliseconds: 215 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:30 GMT 1 < Content-Length: 684 {"data":[{"acaId":13858,"acaType":"application","applicationLicenseId":"0111-22-129122","legacySerialNo":null,"legalName":"Automation20221115192206Automation","dba":null,"licenseDescription":"Restaurant-Beer","expirationDate":"2022-11-25T00:00:00","examinerAssigned":"Tarun Gupta","premisesAddress":"Address1 Address2 New York New York New York 12345 1234 United States (US)","applicantAddress":"Address1 Address2 New York New York New York 12345 1234 United States (US)","feinSsn":"","formId":1165,"applicationId":"NA-0111-22-119055","licenseId":"0111-22-129122","wfRoleId":2,"applicationStatus":"Approved","licenseStatus":"Active"}],"total":1,"aggregateResults":null,"errors":null}
1333
Then status 200
0
1334
And print response
0
19:22:34.191 [print] { "data": [ { "acaId": 13858, "acaType": "application", "applicationLicenseId": "0111-22-129122", "legacySerialNo": null, "legalName": "Automation20221115192206Automation", "dba": null, "licenseDescription": "Restaurant-Beer", "expirationDate": "2022-11-25T00:00:00", "examinerAssigned": "Tarun Gupta", "premisesAddress": "Address1 Address2 New York New York New York 12345 1234 United States (US)", "applicantAddress": "Address1 Address2 New York New York New York 12345 1234 United States (US)", "feinSsn": "", "formId": 1165, "applicationId": "NA-0111-22-119055", "licenseId": "0111-22-129122", "wfRoleId": 2, "applicationStatus": "Approved", "licenseStatus": "Active" } ], "total": 1, "aggregateResults": null, "errors": null }
1335
* match response.data[0].applicationStatus == '#(LicAppStatus)'
1
601
* call read('LicensesCommonMethods.feature@GetLicenseId') {}
648
>>
karate.UseCases.LicensesCommonMethods
162
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
3212
Given path '/internalapi/api/licensing/LBDecision/getLicenseByAppId/' + appId +'/-1'
0
3213
And header authorization = 'Bearer ' + strToken
0
3214
* def EffectiveDate = EffDate()
0
3215
And request {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":'#(appId)',"applicationType":1,"applicationId":'#(ApplicationId)',"legalName":null,"statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":'#(EffectiveDate)',"expirationDate":'#(expiryDate)',"stipulations":[],"descriptions":[]}}
2
3216
When method get
155
19:22:34.682 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/LBDecision/getLicenseByAppId/13858/-1 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 2436 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":13858,"applicationType":1,"applicationId":"NA-0111-22-119055","legalName":null,"statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":"2022-11-15","expirationDate":"#(expiryDate)","stipulations":[],"descriptions":[]}} 19:22:34.836 response time in milliseconds: 154 1 < 200 1 < Content-Length: 2853 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:32 GMT {"license":{"licId":1471,"applicationId":null,"licenseId":"0111-22-129122","licensePermitId":null,"licePermitTypeId":40,"appId":13858,"legacySerialNo":null,"issueDate":null,"expiryDate":"2025-10-31T00:00:00","effectiveDate":"2022-11-15T00:00:00","seasonalStartDate":null,"seasonalEndDate":null,"safeKeepingExpiryDate":null,"status":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"extTempPermitEnabled":false,"application":{"applicationCategory":null,"appId":null,"applicationId":null,"licePermitTypeId":null,"applicationTypeId":null,"formVersionId":null,"formId":null,"legalName":null,"submitDate":null,"isGISRequired":null,"licenseDescription":null,"recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":null,"priority":null,"expirationDate":null,"appStatusId":null,"taskStatus":null,"taskId":null,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":null,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":null,"isNotQualified":null,"eventDate":null,"appStatus":{"appStatusId":0,"statusDescription":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":null,"assignAppToLB":null,"licePermitType":null,"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":0,"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isCaseOpenSameAddress":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"clericalName":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"isFairOrFestival":false,"isShowEffExpDateOnLBReview":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"options":null,"emailNotificationModel":null,"taskOptionsListNested":null,"days":0,"permit":null,"licPermitType":null,"licensePermitMapping":null,"licenseFee":null,"accountBalance":null,"licenseDescription":null,"isSeasonal":false,"isSummerSeasonal":false,"newExpiryDate":null,"amountDue":null,"originalLicenseFee":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"wfRoleId":0},"person":[],"totalRecord":0,"apps":[]}
3217
Then status 200
0
3218
And def serverResponse = response
0
3219
And print serverResponse
1
19:22:34.838 [print] { "license": { "licId": 1471, "applicationId": null, "licenseId": "0111-22-129122", "licensePermitId": null, "licePermitTypeId": 40, "appId": 13858, "legacySerialNo": null, "issueDate": null, "expiryDate": "2025-10-31T00:00:00", "effectiveDate": "2022-11-15T00:00:00", "seasonalStartDate": null, "seasonalEndDate": null, "safeKeepingExpiryDate": null, "status": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null, "extTempPermitEnabled": false, "application": { "applicationCategory": null, "appId": null, "applicationId": null, "licePermitTypeId": null, "applicationTypeId": null, "formVersionId": null, "formId": null, "legalName": null, "submitDate": null, "isGISRequired": null, "licenseDescription": null, "recommendedDecisionId": null, "status500": null, "isApplicableForPDLetter": false, "countyName": null, "priority": null, "expirationDate": null, "appStatusId": null, "taskStatus": null, "taskId": null, "currentWfstatus": null, "communityBoard": null, "isLicenseApplication": null, "currentDueDate": null, "isFinalDeficiency": null, "isHighlyDeficient": null, "isAllDeficienciesMet": null, "pastDueDate": null, "memo": null, "isOneTimePermit": null, "dueDateAction": null, "isDisapprovedForCause": null, "isNotQualified": null, "eventDate": null, "appStatus": { "appStatusId": 0, "statusDescription": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null }, "applicationType": null, "assignAppExaminer": null, "assignAppToLB": null, "licePermitType": null, "assoApplicationList": [ ], "isTempPermit": null, "isTempOrLiq": false, "licPermitTypeId": 0, "isAssociatedLicense": null, "effectiveDate": null, "assignedUserId": null, "amendmentTypeId": null, "amendmentType": null, "disapprovedDate": null, "condApprovedDate": null, "addressId": null, "isCaseOpen": null, "isClosed": null, "isCaseOpenSameAddress": null, "isSpecialEventPlusFour": null, "isSpecialEventInsideFiveBoroughs": null, "licStatus": null, "createdBy": null, "clericalName": null, "licenseId": null, "address": null, "isNybeApp": false, "isHearingCompleted": null, "does500FtHearingExist": null, "parentAppStatus": null, "premisesAppCount": 0, "statusDescription": null, "eventAddress": null, "isFairOrFestival": false, "isShowEffExpDateOnLBReview": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskRoleId": 0, "taskDecision": null, "isActive": null, "createdDate": null, "modifiedBy": null, "wfRoleId": 0, "modifiedDate": null }, "options": null, "emailNotificationModel": null, "taskOptionsListNested": null, "days": 0, "permit": null, "licPermitType": null, "licensePermitMapping": null, "licenseFee": null, "accountBalance": null, "licenseDescription": null, "isSeasonal": false, "isSummerSeasonal": false, "newExpiryDate": null, "amountDue": null, "originalLicenseFee": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskId": null, "taskRoleId": 0, "taskDecision": null, "wfRoleId": 0 }, "person": [ ], "totalRecord": 0, "apps": [ ] }
3220
And def licId = serverResponse.license.licId
0
3221
And def licenseId = serverResponse.license.licenseId
0
3222
And def ActEffDate = serverResponse.license.seasonalStartDate
0
3223
And def ActExpDate = serverResponse.license.expiryDate
0
3224
And print serverResponse
1
19:22:34.840 [print] { "license": { "licId": 1471, "applicationId": null, "licenseId": "0111-22-129122", "licensePermitId": null, "licePermitTypeId": 40, "appId": 13858, "legacySerialNo": null, "issueDate": null, "expiryDate": "2025-10-31T00:00:00", "effectiveDate": "2022-11-15T00:00:00", "seasonalStartDate": null, "seasonalEndDate": null, "safeKeepingExpiryDate": null, "status": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null, "extTempPermitEnabled": false, "application": { "applicationCategory": null, "appId": null, "applicationId": null, "licePermitTypeId": null, "applicationTypeId": null, "formVersionId": null, "formId": null, "legalName": null, "submitDate": null, "isGISRequired": null, "licenseDescription": null, "recommendedDecisionId": null, "status500": null, "isApplicableForPDLetter": false, "countyName": null, "priority": null, "expirationDate": null, "appStatusId": null, "taskStatus": null, "taskId": null, "currentWfstatus": null, "communityBoard": null, "isLicenseApplication": null, "currentDueDate": null, "isFinalDeficiency": null, "isHighlyDeficient": null, "isAllDeficienciesMet": null, "pastDueDate": null, "memo": null, "isOneTimePermit": null, "dueDateAction": null, "isDisapprovedForCause": null, "isNotQualified": null, "eventDate": null, "appStatus": { "appStatusId": 0, "statusDescription": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null }, "applicationType": null, "assignAppExaminer": null, "assignAppToLB": null, "licePermitType": null, "assoApplicationList": [ ], "isTempPermit": null, "isTempOrLiq": false, "licPermitTypeId": 0, "isAssociatedLicense": null, "effectiveDate": null, "assignedUserId": null, "amendmentTypeId": null, "amendmentType": null, "disapprovedDate": null, "condApprovedDate": null, "addressId": null, "isCaseOpen": null, "isClosed": null, "isCaseOpenSameAddress": null, "isSpecialEventPlusFour": null, "isSpecialEventInsideFiveBoroughs": null, "licStatus": null, "createdBy": null, "clericalName": null, "licenseId": null, "address": null, "isNybeApp": false, "isHearingCompleted": null, "does500FtHearingExist": null, "parentAppStatus": null, "premisesAppCount": 0, "statusDescription": null, "eventAddress": null, "isFairOrFestival": false, "isShowEffExpDateOnLBReview": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskRoleId": 0, "taskDecision": null, "isActive": null, "createdDate": null, "modifiedBy": null, "wfRoleId": 0, "modifiedDate": null }, "options": null, "emailNotificationModel": null, "taskOptionsListNested": null, "days": 0, "permit": null, "licPermitType": null, "licensePermitMapping": null, "licenseFee": null, "accountBalance": null, "licenseDescription": null, "isSeasonal": false, "isSummerSeasonal": false, "newExpiryDate": null, "amountDue": null, "originalLicenseFee": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskId": null, "taskRoleId": 0, "taskDecision": null, "wfRoleId": 0 }, "person": [ ], "totalRecord": 0, "apps": [ ] }
3225
And print 'licId : ' , licId
0
19:22:34.840 [print] licId : 1471
3226
And print 'licenseId : ' , licenseId
0
19:22:34.840 [print] licenseId : 0111-22-129122
3227
And match licId != []
0
3228
And match licenseId != []
0
602
And print licenseId
0
19:22:34.843 [print] 0111-22-129122
603
* def notQualifiedApplication = false
0
604
* def notQlfdAppMessage = ''
0
605
* def NameSearch = 'automation'
0
607
* call read('RenewalCommonMethods.feature@IntakeRenewalLicense') {}
2871
>>
karate.UseCases.RenewalCommonMethods
2264
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
0
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
1
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
169
Given path '/internalapi/api/licensing/search/searchLicensesAndPermits/'
0
170
And header Content-Type = 'application/json; charset=utf-8'
0
172
And header Accept = 'application/json; text/plain;*/*'
0
173
And header authorization = 'Bearer ' + strToken
0
176
And request {"WfTaskIdList":[],"LicenseStatusList":[19,45,40],"ShowLicensesAndPermits":true,"Status":null,"isTempPermit":null,"ApplicationId":null,"LicensePermitId":'#(licenseId)',"LegalName":null,"FEIN":null,"applyFor":""}
0
177
When method POST
164
19:22:35.449 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/search/searchLicensesAndPermits 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 213 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"WfTaskIdList":[],"LicenseStatusList":[19,45,40],"ShowLicensesAndPermits":true,"Status":null,"isTempPermit":null,"ApplicationId":null,"LicensePermitId":"0111-22-129122","LegalName":null,"FEIN":null,"applyFor":""} 19:22:35.614 response time in milliseconds: 164 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:32 GMT 1 < Content-Length: 1291 {"licenses":[{"lpId":1471,"licensePermitId":"0111-22-129122","licPermitTypeId":40,"isAccociatedLicense":false,"appId":13858,"mainAppId":13858,"status":"Active","legacySerialNo":null,"isLicense":true,"isPermit":null,"issueDate":"2022-11-15T00:00:00","expiryDate":"2022-11-25T00:00:00","effectiveDate":"2022-11-15T00:00:00","safeKeepingExpiryDate":null,"licensePermitStatusId":19,"combinedCraftId":null,"masterFileId":null,"isApplicableForTransfer":null,"surrenderDate":null,"isActive":true,"createdDate":"2022-11-15T08:52:29.773","modifiedDate":null,"submitDate":"2022-11-15T08:52:12.94","description":"Restaurant-Beer","county":"New York","legalName":"Automation20221115192206Automation","fein":"","formId":1165,"isRenewalRequird":true,"dba":null,"associatePermits":[],"provisions":[],"address":{"addressId":null,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":null,"county":"New York","zipCode":"12345","zip4":null,"street":null,"telephoneNumber":null,"country":null,"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":null,"serialNo":0,"addressType":null,"state":null},"mfCCId":null}],"totalRecord":1}
178
Then status 200
0
179
* def licPermitTypeId = response.licenses[0].licPermitTypeId
0
180
* def lpId = response.licenses[0].lpId
0
181
* def effectiveDate = response.licenses[0].effectiveDate
0
182
* def expiryDate = response.licenses[0].expiryDate
0
183
* def legalName = response.licenses[0].legalName
0
184
* def licAppId = response.licenses[0].appId
0
185
* def submitDate = response.licenses[0].submitDate
0
186
* call read('LicensesCommonMethods.feature@GetCountyList') {}
1715
>>
karate.UseCases.LicensesCommonMethods
442
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
117
Given path '/internalapi/api/reference'
0
118
* def dbSts = db.cleanHeap()
273
119
And header authorization = 'Bearer ' + strToken
0
120
And header Content-Type = 'application/json;charset=utf-8'
0
121
And header Accept = 'text/plain'
0
# * def query = {name:countyzone&onlyActives:true}
123
And params {name:countyzone,onlyActives:true}
0
#And param onlyActives='true'
125
And request {}
0
126
When method get
164
19:22:37.166 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/reference?name=countyzone&onlyActives=true 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json;charset=utf-8 1 > Accept: text/plain 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:22:37.325 response time in milliseconds: 159 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:34 GMT 1 < Content-Length: 11712 {"values":[{"CountyId":1,"County":"New York","ShortName":"NEW","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T00:00:00","ModifiedBy":"esandoval","ModifiedDate":"2020-11-10T11:30:56.047"},{"CountyId":2,"County":"Kings","ShortName":"KING","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":3,"County":"Bronx","ShortName":"BRON","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":4,"County":"Queens","ShortName":"QUEE","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":5,"County":"Richmond","ShortName":"RICH","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":6,"County":"Nassau","ShortName":"NASS","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":7,"County":"Suffolk","ShortName":"SUFF","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":8,"County":"Westchester","ShortName":"WEST","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":9,"County":"Orange","ShortName":"ORAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":10,"County":"Putnam","ShortName":"PUTN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":11,"County":"Rockland","ShortName":"ROCK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":12,"County":"Albany","ShortName":"ALBA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":13,"County":"Clinton","ShortName":"CLIN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":14,"County":"Columbia","ShortName":"COLU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":15,"County":"Dutchess","ShortName":"DUTC","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":16,"County":"Essex","ShortName":"ESSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":17,"County":"Franklin","ShortName":"FRAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":18,"County":"Fulton","ShortName":"FULT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":19,"County":"Greene","ShortName":"GREE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":20,"County":"Hamilton","ShortName":"HAMI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":21,"County":"Montgomery","ShortName":"MONT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":22,"County":"Rensselaer","ShortName":"RENS","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":23,"County":"Saratoga","ShortName":"SARA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":24,"County":"Schenectady","ShortName":"SCHE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":25,"County":"Schoharie","ShortName":"SCHO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":26,"County":"Sullivan","ShortName":"SULL","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":27,"County":"Ulster","ShortName":"ULST","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":28,"County":"Warren","ShortName":"WARR","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":29,"County":"Washington","ShortName":"WASH","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":30,"County":"Allegany","ShortName":"ALLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":31,"County":"Cattaraugus","ShortName":"CATT","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":32,"County":"Chautauqua","ShortName":"CHAU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":33,"County":"Chemung","ShortName":"CHEM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":34,"County":"Erie","ShortName":"ERIE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":35,"County":"Genesee","ShortName":"GENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":36,"County":"Livingston","ShortName":"LIVI","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":37,"County":"Monroe","ShortName":"MONR","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":38,"County":"Niagara","ShortName":"NIAG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":39,"County":"Ontario","ShortName":"ONTA","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":40,"County":"Orleans","ShortName":"ORLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":41,"County":"Schuyler","ShortName":"SCHU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":42,"County":"Seneca","ShortName":"SENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":43,"County":"Steuben","ShortName":"STEU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":44,"County":"Wayne","ShortName":"WAYN","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":45,"County":"Wyoming","ShortName":"WYOM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":46,"County":"Yates","ShortName":"YATE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":47,"County":"Broome","ShortName":"BROO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":48,"County":"Chenango","ShortName":"CHEN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":49,"County":"Cortland","ShortName":"CORT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":50,"County":"Delaware","ShortName":"DELA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":51,"County":"Herkimer","ShortName":"HERK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":52,"County":"Jefferson","ShortName":"JEFF","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":53,"County":"Lewis","ShortName":"LEWI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":54,"County":"Madison","ShortName":"MADI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":55,"County":"Oneida","ShortName":"ONEI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":56,"County":"Onondaga","ShortName":"ONON","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":57,"County":"Oswego","ShortName":"OSWE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":58,"County":"Otsego","ShortName":"OTSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":59,"County":"St. Lawrence","ShortName":"ST L","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":60,"County":"Cayuga","ShortName":"CAYU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":61,"County":"Tioga","ShortName":"TIOG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":62,"County":"Tompkins","ShortName":"TOMP","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.6","ModifiedBy":null,"ModifiedDate":null}],"name":"countyzone","schema":[{"columnName":"CountyId","dataType":"int","maxLenght":null,"isRequired":true},{"columnName":"County","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ShortName","dataType":"nvarchar","maxLenght":10,"isRequired":false},{"columnName":"ZoneNo","dataType":"int","maxLenght":null,"isRequired":false},{"columnName":"IsActive","dataType":"bit","maxLenght":null,"isRequired":false},{"columnName":"CreatedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"CreatedDate","dataType":"datetime","maxLenght":null,"isRequired":false},{"columnName":"ModifiedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ModifiedDate","dataType":"datetime","maxLenght":null,"isRequired":false}]}
127
* configure continueOnStepFailure = true
0
128
Then status 200
0
129
And def values = response.values
0
130
* configure continueOnStepFailure = true
0
187
* def countyData = karate.jsonPath(values, "$[?(@.CountyId == '" + CountyId + "')]")
0
188
* def countyZone = countyData[0].ZoneNo
0
189
And print countyZone
0
19:22:37.330 [print] 1
190
Given path '/internalapi/api/licensing/renewal/save'
0
191
* def dbSts = db.cleanHeap()
203
192
And header authorization = 'Bearer ' + strToken
0
193
And header Content-Type = 'application/json; charset=utf-8'
0
194
And header Accept = 'application/json; text/plain;*/*'
0
195
And configure continueOnStepFailure = true
0
196
And request {"mainLicenseId":'#(licenseId)',"associated":[],"notQualifiedApplication":'#(notQualifiedApplication)',"NotQualifiedComments":'#(notQlfdAppMessage)'}
0
197
When method Post
176
19:22:37.534 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/renewal/save 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > Content-Length: 108 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"mainLicenseId":"0111-22-129122","associated":[],"notQualifiedApplication":false,"NotQualifiedComments":""} 19:22:37.709 response time in milliseconds: 175 2 < 200 2 < Content-Length: 170 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:52:34 GMT [{"appId":13859,"formId":1167,"childAppId":null,"mainApplicationId":"RE-22-106366-01","childApplicationId":null,"licensePermitTypeId":40,"description":"Restaurant-Beer"}]
198
* configure continueOnStepFailure = true
0
199
Then status 200
0
200
* def description = response[0].description
0
201
* def appId = response[0].appId
0
202
* def formId = response[0].formId
0
203
* def ApplicationId = response[0].mainApplicationId
0
204
And print ApplicationId
0
19:22:37.709 [print] RE-22-106366-01
205
And match ApplicationId contains 'RE-'
0
207
* def currentYear = '-'+getYearFunc()+'-'
0
208
And match ApplicationId contains currentYear
0
608
* call read('RenewalCommonMethods.feature@SaveAssociatedPrincipal') {}
554
>>
karate.UseCases.RenewalCommonMethods
347
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
1
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
464
Given path '/internalapi/api/licensing/app/static/principal/'+appId
0
466
And header Content-Type = 'application/json; charset=utf-8'
0
467
And header Accept = 'application/json; text/plain;*/*'
0
468
And header authorization = 'Bearer ' + strToken
0
469
And request {}
0
470
When method get
158
19:22:37.924 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/13859 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:22:38.081 response time in milliseconds: 157 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:34 GMT 1 < Content-Length: 1388 {"entities":[],"principals":[{"principalId":3281,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":true,"isFingerprintsApproved":true,"percentageOfOwners":20.0,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","entities":null,"numberOfShares":"","isSignature":false,"isRemove":false,"date":"2022-11-15T00:00:00","convictedOfCrime":"1","title":"15","isLicensed":true,"isAssociated":true,"person":{"personId":5572,"firstName":"Automation20221115192206","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T00:00:00","serialNo":0,"age":0,"choosedEntity":[]},"address":{"addressId":29333,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25245,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
471
Then status 200
0
472
* def personResponse = response
0
473
* def principalId = personResponse.principals[0].principalId
0
474
* def personId = personResponse.principals[0].person.personId
0
475
* def licFirstName = personResponse.principals[0].person.firstName
0
476
* def licLastName = personResponse.principals[0].person.lastName
0
477
* def licCommID = personResponse.principals[0].communication.id
0
478
* def licEmailID = personResponse.principals[0].communication.email
0
479
* def licAddressId = personResponse.principals[0].address.addressId
0
480
Given path '/internalapi/api/licensing/app/static/principal/save/'+appId
0
482
And header Content-Type = 'application/json; charset=utf-8'
0
483
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
492
* def prncipalName = 'AutoRenewal'+getDate1()
1
494
And header Accept = 'application/json; text/plain;*/*'
0
495
And header authorization = 'Bearer ' + strToken
0
498
And request {"entities":[],"principals":[{"principalId":'#(principalId)',"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":true,\"isNewPrincipal\":false}","entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":'#(personId)',"firstName":'#(licFirstName)',"middleName":"","lastName":'#(licLastName)',"suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":null},"address":{"addressId":'#(licAddressId)',"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":'#(licCommID)',"email":'#(licEmailID)',"confirmEmail":'#(licEmailID)',"phones":[]}},{"principalId":0,"convictedOfCrime":"","percentageOfOwners":"","isFingerprintRequired":"","isFingerprintsApproved":"","title":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"Test Address1","addressLine2":"","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":'#(licEmailID)',"confirmEmail":'#(licEmailID)'},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
0
499
When method post
184
19:22:38.083 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/save/13859 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 2220 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"entities":[],"principals":[{"principalId":3281,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":true,\"isNewPrincipal\":false}","entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":5572,"firstName":"Automation20221115192206","middleName":"","lastName":"AutoLastName","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":null},"address":{"addressId":29333,"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25245,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}},{"principalId":0,"convictedOfCrime":"","percentageOfOwners":"","isFingerprintRequired":"","isFingerprintsApproved":"","title":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"Test Address1","addressLine2":"","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":"automation@svam.com","confirmEmail":"automation@svam.com"},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]} 19:22:38.266 response time in milliseconds: 183 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:52:34 GMT 2 < Content-Length: 2326 {"entities":[],"principals":[{"principalId":3281,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":null,"entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":5572,"firstName":"Automation20221115192206","middleName":"","lastName":"AutoLastName","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":[]},"address":{"addressId":29333,"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25245,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}},{"principalId":3282,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":null,"entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":[]},"address":{"addressId":0,"appId":null,"addressLine1":"Test Address1","addressLine2":"","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":0,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
500
Then status 200
0
609
* call read('RenewalCommonMethods.feature@Fee_Check') {}
526
>>
karate.UseCases.RenewalCommonMethods
310
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
0
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
504
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
505
* def totalFees = licenseFees + fillingFees
0
506
And print totalFees
0
19:22:38.484 [print] 1060.0
507
And header Content-Type = 'application/json; charset=utf-8'
0
508
And header Accept = 'application/json; text/plain;*/*'
0
509
And header authorization = 'Bearer ' + strToken
0
510
And request {}
0
511
When method get
307
19:22:38.485 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13859 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:22:38.792 response time in milliseconds: 307 1 < 200 1 < Content-Length: 655 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:36 GMT [{"licenseName":"Restaurant - Beer","applicationId":"RE-22-106366-01","applicationTypeId":2,"appFeesId":0,"appId":13859,"feesRefId":6042,"initialFees":0.0,"licensingFees":480.00,"amendmentFees":0.0,"renewalFees":30.00,"totalFees":0.0,"filingFees":0.0,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
512
Then status 200
0
513
And def serverResponse = response
0
514
* def licTerm = serverResponse[0].term
0
515
* def licFees = serverResponse[0].licensingFees+''
0
516
* def licTermDesc = serverResponse[0].termDesc
0
517
* def licFeesRefId = serverResponse[0].feesRefId
0
519
* def licAncillaryFees = serverResponse[0].ancillaryFees+''
0
520
* def licfilingFees = serverResponse[0].filingFees+''
0
521
* def licInitialFees = serverResponse[0].initialFees
0
522
* def licRenewalFees = serverResponse[0].renewalFees
0
610
* match licRenewalFees == 30
0
611
* call read('RenewalCommonMethods.feature@RenewalFeesValidationwithMultipleChecks') {amount:10}
1495
19:22:40.289 classpath:karate/UseCases/Uc_RenewalIntakeFees.feature:611 * call read('RenewalCommonMethods.feature@RenewalFeesValidationwithMultipleChecks') {amount:10} status code was: 404, expected: 200, response time in milliseconds: 240, url: https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13859/false/internalapi/api/licensing/app/save, response: classpath:karate/UseCases/RenewalCommonMethods.feature:668 classpath:karate/UseCases/Uc_RenewalIntakeFees.feature:611
>>
karate.UseCases.RenewalCommonMethods
1276
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
0
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
541
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
542
And header Content-Type = 'application/json; charset=utf-8'
0
543
And header Accept = 'application/json; text/plain;*/*'
0
544
And header authorization = 'Bearer ' + strToken
0
545
And request {}
0
546
When method get
222
19:22:39.014 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13859 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:22:39.236 response time in milliseconds: 222 1 < 200 1 < Content-Length: 655 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:36 GMT [{"licenseName":"Restaurant - Beer","applicationId":"RE-22-106366-01","applicationTypeId":2,"appFeesId":0,"appId":13859,"feesRefId":6042,"initialFees":0.0,"licensingFees":480.00,"amendmentFees":0.0,"renewalFees":30.00,"totalFees":0.0,"filingFees":0.0,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
547
Then status 200
0
548
And def serverResponse = response
0
549
* def licTerm = serverResponse[0].term
0
550
* def licFees = serverResponse[0].licensingFees+''
0
551
* def licTermDesc = serverResponse[0].termDesc
0
552
* def licFeesRefId = serverResponse[0].feesRefId
0
553
* def licAncillaryFees = serverResponse[0].ancillaryFees+''
0
554
* def licfilingFees = serverResponse[0].filingFees+''
0
555
* def licInitialFees = serverResponse[0].initialFees
0
556
* def bndFees = serverResponse[0].bondFee
0
557
* def isBondRequired = serverResponse[0].isBondRequired
0
558
And def totalFees = serverResponse[0].licensingFees+serverResponse[0].filingFees
0
559
And print totalFees
0
19:22:39.238 [print] 480.0
560
* def underpaidAmount = totalFees-(amount+100)
0
561
* def amountPaid = amount+''
0
562
And print 'underpaidAmount- ',underpaidAmount
0
19:22:39.238 [print] underpaidAmount- 370.0
565
Given path '/internalapi/api/notification/SaveNotification'
0
567
And header Content-Type = 'application/json; charset=utf-8'
0
568
And header Accept = 'application/json; text/plain;*/*'
0
569
And header authorization = 'Bearer ' + strToken
0
570
And request {"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}
0
571
When method post
147
19:22:39.238 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/notification/SaveNotification 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 2006 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13859,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13859,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13859,"createdBy":"Tarun Gupta"} 19:22:39.384 response time in milliseconds: 146 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:52:36 GMT 2 < Content-Length: 5 false
572
Then status 200
0
573
And print response
0
19:22:39.385 [print] false
577
Given path 'internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
578
And header Content-Type = 'application/json; charset=utf-8'
0
579
* def futureDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
592
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
602
* def date = getDate2()
1
605
* def futureDate = futureDateFunc()
1
606
And header Accept = 'application/json; text/plain;*/*'
0
607
And header authorization = 'Bearer ' + strToken
0
609
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":100},{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"2","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":'#(amountPaid)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":"0.00","totalFees":"580.00","filingFees":'#(licfilingFees)',"ancillaryFees":'#(licAncillaryFees)',"isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":false,"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(licTerm)',"termDesc":'#(licTermDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"isFromReturnedCheck":false,"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
0
611
When method post
223
19:22:39.388 request: 3 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13859/false 3 > Content-Type: application/json; charset=utf-8 3 > Accept: application/json; text/plain;*/* 3 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 3 > Content-Length: 5289 3 > Host: slaleapqaapi.svam.com 3 > Connection: Keep-Alive 3 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 3 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13859,"slaintakeDate":"2022-11-15T19:22:39.386Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:22:39.386Z","amount":100},{"appId":13859,"slaintakeDate":"2022-11-15T19:22:39.386Z","applyClick":false,"paymentSource":"RDC","checkNo":"2","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:22:39.386Z","amount":"10"}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"RE-22-106366-01","applicationTypeId":1,"appFeesId":0,"appId":13859,"feesRefId":6042,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"0.00","totalFees":"580.00","filingFees":"0","ancillaryFees":"0","isFeesWaived":false,"underPaymentAmount":480.0,"amountReceived":"0.00","waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"isFromReturnedCheck":false,"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-11-22T19:22:39.012Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13859,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13859,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13859,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13859,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13859,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13859,"createdBy":"Tarun Gupta"},"taskId":null} 19:22:39.610 response time in milliseconds: 222 3 < 200 3 < Content-Length: 4 3 < Content-Type: application/json; charset=utf-8 3 < Server: Microsoft-IIS/10.0 3 < Strict-Transport-Security: max-age=2592000 3 < X-Powered-By: ASP.NET 3 < Date: Tue, 15 Nov 2022 13:52:36 GMT true
612
Then status 200
0
614
Given path 'internalapi/api/licensing/fees/check-payments/get/'+appId
0
615
And header authorization = 'Bearer ' + strToken
0
616
And request {}
0
617
When method get
199
19:22:39.611 request: 4 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/check-payments/get/13859 4 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 4 > Content-Type: application/json; charset=UTF-8 4 > Content-Length: 2 4 > Host: slaleapqaapi.svam.com 4 > Connection: Keep-Alive 4 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 4 > Accept-Encoding: gzip,deflate {} 19:22:39.810 response time in milliseconds: 199 4 < 200 4 < Content-Type: application/json; charset=utf-8 4 < Server: Microsoft-IIS/10.0 4 < Strict-Transport-Security: max-age=2592000 4 < X-Powered-By: ASP.NET 4 < Date: Tue, 15 Nov 2022 13:52:37 GMT 4 < Content-Length: 880 [{"checkDetailId":2341,"appId":13859,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T00:00:00","slaintakeDate":"2022-11-15T00:00:00","amount":100.0000,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T08:52:36.913","modifiedBy":null,"modifiedDate":null},{"checkDetailId":2342,"appId":13859,"paymentSource":"RDC","checkNo":"2","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T00:00:00","slaintakeDate":"2022-11-15T00:00:00","amount":10.0000,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T08:52:36.923","modifiedBy":null,"modifiedDate":null}]
618
Then status 200
0
619
And def checkDetailId = response[0].checkDetailId
0
620
And print checkDetailId
0
19:22:39.810 [print] 2341
621
And def checkDetailId1 = response[1].checkDetailId
0
622
And print checkDetailId1
0
19:22:39.810 [print] 2342
625
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
626
And header authorization = 'Bearer ' + strToken
0
627
And header Content-Type = 'application/json; charset=utf-8'
0
628
And header Accept = 'application/json; text/plain;*/*'
0
629
And request ""
0
630
When method get
233
19:22:39.811 request: 5 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13859 5 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 5 > Content-Type: application/json; charset=utf-8 5 > Accept: application/json; text/plain;*/* 5 > Content-Length: 0 5 > Host: slaleapqaapi.svam.com 5 > Connection: Keep-Alive 5 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 5 > Accept-Encoding: gzip,deflate 19:22:40.044 response time in milliseconds: 233 5 < 200 5 < Content-Length: 658 5 < Content-Type: application/json; charset=utf-8 5 < Server: Microsoft-IIS/10.0 5 < Strict-Transport-Security: max-age=2592000 5 < X-Powered-By: ASP.NET 5 < Date: Tue, 15 Nov 2022 13:52:37 GMT [{"licenseName":"Restaurant - Beer","applicationId":"RE-22-106366-01","applicationTypeId":2,"appFeesId":3078,"appId":13859,"feesRefId":6042,"initialFees":0.0,"licensingFees":480.00,"amendmentFees":0.0,"renewalFees":30.00,"totalFees":0.0,"filingFees":0.0,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
631
Then status 200
0
632
And print response[0].appFeesId
0
19:22:40.044 [print] 3078
633
And def appFeesId1 = response[0].appFeesId
0
634
And def feesRefId1 = response[0].feesRefId
0
635
And print appFeesId1
0
19:22:40.044 [print] 3078
636
And print feesRefId1
0
19:22:40.044 [print] 6042
637
And def applicationTypeId = response[0].applicationTypeId
0
638
And print applicationTypeId
0
19:22:40.044 [print] 2
# ********* Save PAYMENT *********************
641
Given path '/internalapi/api/licensing/fees/details/save/'+appId +'/false'
0
643
* def slaDate = licFeesDate()
0
644
* def slaaDate = licDate()
0
645
* def licInitialFees1 = licInitialFees+''
0
646
And print licInitialFees1
0
19:22:40.045 [print] 0
647
* def renewalFees1 = renewalFees+''
0
648
And print renewalFees1
0
19:22:40.045 [print] 30
649
* def totalFees1 = totalFees+''
0
651
And print totalFees1
0
19:22:40.045 [print] 480
652
* def licAncillaryFees1 = licAncillaryFees+''
0
653
* def licfilingFees1 = licfilingFees+''
0
655
And header authorization = 'Bearer ' + strToken
0
656
And request {"checks":[{"checkDetailId":'#(checkDetailId)',"appId":'#(appId)',"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":'#(date)',"slaintakeDate":'#(date)',"amount":100,"appliedTo":null,"amountUsed":100,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":'#(date)',"modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0},{"checkDetailId":'#(checkDetailId1)',"appId":'#(appId)',"paymentSource":"RDC","checkNo":"2","batchNo":"1","itemNo":"1","slareceivedDate":'#(date)',"slaintakeDate":'#(date)',"amount":'#(amountPaid)',"appliedTo":null,"amountUsed":0,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":'#(date)',"modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":'#(amountPaid)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":'#(licFeesRefId)',"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":"0.00","totalFees":'#(totalFees1)',"filingFees":'#(licfilingFees1)',"ancillaryFees":'#(licAncillaryFees)',"isFeesWaived":false,"underPaymentAmount":0,"amountReceived":'#(amountPaid)',"waivedComment":null,"isBondReceived":false,"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":'#(appId)',"checkDetailId":'#(checkDetailId)',"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":"100.00","amount":0},{"appId":'#(appId)',"checkDetailId":'#(checkDetailId1)',"checkNo":"2","itemNo":"1","batchNo":"1","amountAppliedForApp":'#(amountPaid)',"amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"isFromReturnedCheck":false,"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":true,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
0
#{"checks":[{"checkDetailId":1622,"appId":5856,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-09-23T00:00:00.000Z","slaintakeDate":"2022-09-23T00:00:00.000Z","amount":"100.00","isPaymentFailed":false,"appliedTo":null,"amountUsed":100,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-09-23T13:22:04.11","modifiedBy":null,"modifiedDate":null,"applyClick":true},{"checkDetailId":1623,"appId":5856,"paymentSource":"RDC","checkNo":"2","batchNo":"1","itemNo":"1","slareceivedDate":"2022-09-23T00:00:00.000Z","slaintakeDate":"2022-09-23T00:00:00.000Z","amount":"10.00","isPaymentFailed":false,"appliedTo":null,"amountUsed":10,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-09-23T13:22:04.113","modifiedBy":null,"modifiedDate":null,"applyClick":true}],"appFees":{"appFees":[{"licenseName":"Restaurant - Beer","applicationId":"RE-22-106102-01","applicationTypeId":2,"appFeesId":3976,"appId":5856,"feesRefId":6039,"initialFees":0,"licensingFees":"960.00","amendmentFees":"0.00","renewalFees":"0.00","totalFees":"960.00","filingFees":"0.00","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":850,"amountReceived":"110.00","waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appPaymentId":2112,"amountAppliedForApp":"100.00","checkDetailId":1622,"appId":5856,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-09-23T00:00:00","slaintakeDate":"2022-09-23T00:00:00","amount":0,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":null,"createdDate":"2022-09-23T13:21:19.61","modifiedBy":"tgupta@svam.com","modifiedDate":"2022-09-23T13:22:04.06"},{"appPaymentId":2113,"amountAppliedForApp":"10.00","checkDetailId":1623,"appId":5856,"paymentSource":"RDC","checkNo":"2","batchNo":"1","itemNo":"1","slareceivedDate":"2022-09-23T00:00:00","slaintakeDate":"2022-09-23T00:00:00","amount":0,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":null,"createdDate":"2022-09-23T13:21:19.623","modifiedBy":"tgupta@svam.com","modifiedDate":"2022-09-23T13:22:04.07"}],"lateFee":0,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}],"isBondRequired":true,"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":true,"fundDueDate":"2022-09-30T00:00:00.000Z","emailNotificationDetail":{"applicant":{"communicationId":0,"email":"automation@svam.com","appId":5856,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19517,"email":"sbandi@svam.com","appId":5856,"emailContactTypeId":2,"isChecked":true,"roleId":0,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"automation@test.com","appId":5856,"emailContactTypeId":0,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":true,"appId":5856,"notificationTypeId":96}},"notificationDetails":{"applicant":{"communicationId":0,"email":"automation@svam.com","appId":5856,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19517,"email":"sbandi@svam.com","appId":5856,"emailContactTypeId":2,"isChecked":true,"roleId":0,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"automation@test.com","appId":5856,"emailContactTypeId":0,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":true,"appId":5856,"notificationTypeId":96},"taskId":2066} When method post
658
Then status 200
0
659
And print response
0
19:22:40.046 [print] [ { "licenseName": "Restaurant - Beer", "applicationId": "RE-22-106366-01", "applicationTypeId": 2, "appFeesId": 3078, "appId": 13859, "feesRefId": 6042, "initialFees": 0.0, "licensingFees": 480.0, "amendmentFees": 0.0, "renewalFees": 30.0, "totalFees": 0.0, "filingFees": 0.0, "ancillaryFees": 0.0, "isFeesWaived": false, "underPaymentAmount": 0.0, "amountReceived": 0.0, "waivedComment": null, "isBondReceived": false, "isBondRequired": true, "bondFee": 1000.0, "term": 3, "termDesc": "3 Year (s)", "seasonalStartDate": null, "seasonalEndDate": null, "isFeesCountBased": false, "isFeesUnitBased": false, "numOfUnits": 0, "paymentDetails": [ ], "lateFee": 0.0, "isFeesBarPerDay": null, "tempWinaryLicenseFee": null } ]
# ********* SAVE Application Details To Save *********************
664
Given path '/internalapi/api/licensing/app/save'
0
665
And header authorization = 'Bearer ' + strToken
0
666
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":'#(CityName)',"fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
0
667
When method post
241
19:22:40.048 request: 6 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13859/false/internalapi/api/licensing/app/save 6 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 6 > Content-Type: application/json; charset=UTF-8 6 > Content-Length: 30719 6 > Host: slaleapqaapi.svam.com 6 > Connection: Keep-Alive 6 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 6 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13859,"formID":1167,"applicationID":"RE-22-106366-01","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:22:40.288 response time in milliseconds: 240 6 < 404 6 < Transfer-Encoding: chunked 6 < Server: Microsoft-IIS/10.0 6 < Strict-Transport-Security: max-age=2592000 6 < X-Powered-By: ASP.NET 6 < Date: Tue, 15 Nov 2022 13:52:37 GMT
668
Then status 200
0
19:22:40.289 classpath:karate/UseCases/RenewalCommonMethods.feature:668 Then status 200 status code was: 404, expected: 200, response time in milliseconds: 240, url: https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13859/false/internalapi/api/licensing/app/save, response: classpath:karate/UseCases/RenewalCommonMethods.feature:668
669
And def serverResponse = response
0
612
* call read('RenewalCommonMethods.feature@PastDueDateCheck') {}
0
615
* call read('RenewalCommonMethods.feature@Draft_Status_Check') {}
0
Scenario: [6.1:754] TC015_SLA_REN_Intake_Fees_Underpayment_HOLD
ms: 121099
>>
Background:
3
* url BaseURL
0
19:22:40.382 karate.env system property was: svamqa
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* callonce read('LoginDetails.feature') { strToken:'#(strToken)'}
34
8
* def amendmentTypeId = 1
0
9
* def waitFunc =
0
function(timeinMiliSeconds) { // load java type into js engine var Thread = Java.type('java.lang.Thread'); Thread.sleep(timeinMiliSeconds*1000); }
17
* def DueDate =
0
function(numberOfDays){ var date = new Date(); date.setDate(date.getDate() + (numberOfDays)); return date.toString() }
25
* def DueDateCheck = DueDate(7)
1
27
* def getcorporateStructureCodeFunc =
0
function(value){ if (value === 'Individual'){ return 1; } else { return 2; } }
38
* def getStatusIndOrgStatus =
0
function(value){ if (value === 'Individual'){ return true; } else { return false; } }
49
* def getIndORgCodeFunc =
0
function(value1, value2){ if (value1 == 1 && value2 == 'Individual'){ return 1; } else if (value1 == 1 && value2 == 'Sole Propretior'){ return 2; } else if (value1 == 2 && value2 == 'Individual'){ return 1; } else if (value1 == 2 && value2 == 'Limited Liability Company'){ return 2; }else if (value1 == 2 && value2 == 'Corporation'){ return 3; }else if (value1 == 2 && value2 == 'Limited Liability Partnership'){ return 4; }else if (value1 == 2 && value2 == 'Limited Partnership'){ return 5; }else if (value1 == 2 && value2 == 'Partnership'){ return 6; }else if (value1 == 2 && value2 == 'Government'){ return 7; }else if (value1 == 2 && value2 == 'Sole Propretior'){ return 8; }else if (value1 == 2 && value2 == 'Trust'){ return 9; }else if (value1 == 2 && value2 == 'Estate'){ return 10; } else { return 1; } }
87
* def getFundDueDateMMYYDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
99
* def mmyydateFundDueDate = getFundDueDateMMYYDate(7)
1
100
And print mmyydateFundDueDate
0
19:22:40.418 [print] 11/22/2022
102
* def getAmendmentTypeIdFunc =
0
function(amendmentType){ if (amendmentType == 'ABC Officer'){ return 1; } else if (amendmentType == 'Additional Bar'){ return 2; } else if (amendmentType == 'Alteration'){ return 3; } else if (amendmentType == 'Alteration with Additional Bar'){ return 3; } }
121
* def waitFunc =
0
function(timeinMiliSeconds) { // load java type into js engine var Thread = Java.type('java.lang.Thread'); Thread.sleep(timeinMiliSeconds*1000); }
129
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
140
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
151
* def getMMMMDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MMMM dd, yyyy"); var date = new java.util.Date(); return sdf.format(date); }
161
* def mmmmdate = getMMMMDate()
0
163
* def getMMYYDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); return sdf.format(date); }
173
* def mmyydate = getMMYYDate()
0
175
* def getFundDueDateMMYYDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
187
* def mmyydateFundDueDate = getFundDueDateMMYYDate(7)
0
189
* def dateFnc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date( date.getTime() - java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
199
* def dateWithMonthsNameFnc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MMMM dd, yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date( date.getTime()); return sdf.format(dayAfter); }
208
* def dateWithMonthsName = dateWithMonthsNameFnc()
0
209
And print dateWithMonthsName
0
19:22:40.419 [print] November 15, 2022
628
* def IndOrgSelectionDropDown = 'Individual'
0
629
* def indOrgCode = getIndORgCodeFunc(IndOrgSelectionDropDown)
0
630
And print indOrgCode
0
19:22:40.420 [print] 1
631
* def isIndStatus = getStatusIndOrgStatus(IndOrgSelectionDropDown)
0
632
* def CorporateStructureDropDown = 'Individual'
0
633
* def CorporateStructureDropDownCode = getIndORgCodeFunc(indOrgCode,CorporateStructureDropDown)
0
634
And print CorporateStructureDropDownCode
0
19:22:40.420 [print] 1
635
* def firstName = 'Automation'
0
636
* def lastName = 'Automation'
0
637
* def legalName = firstName+ ' '+lastName
0
638
* def Address1 = 'Address1'
0
639
* def Address2 = 'Address2'
0
640
* def CityName = 'New York'
0
641
* def zipCode = '12345'
0
642
* def postalCode = '1234'
0
643
* def countryName = 'United States (US)'
0
644
* def emailId = 'automation@svam.com'
0
645
* def convictedOfCrime = '1'
0
646
* def percentageOfOwners = '20'
0
647
* def isFingerprintRequired = true
0
648
* def isFingerprintsApproved = true
0
649
* def isSignature = true
0
651
* def convictedOfCrime = '1'
0
652
* def PhoneNumber = '999-999-9999'
0
653
* def PhoneExtn = 1234
0
654
* def countryCode = '+91'
0
655
* def stateCode = 40
0
657
* def mainLicensePermitTypeId = 40
0
658
* def termInYears = 3
0
659
* def termDesc = 3+' Year (s)'
0
660
* def licenseFees = 960
0
661
* def fillingFees = 100
0
662
* def licAncillaryFees = 0
0
663
* def renewalFees = 30+''
0
664
* string productName = 'RestaurantBeer'+''
0
665
* def CountyId = 1
0
666
* def CountyName = 'New York'
0
667
* def totalFees = licenseFees+fillingFees+licAncillaryFees
0
668
And print totalFees
0
19:22:40.421 [print] 1060
669
* def amountPaid = totalFees+''
0
671
* def splittedCityName = CityName.replaceAll(" ","")
0
673
* call read('LicensesCommonMethods.feature@IntakeLicensewithoutAssociatedLic') {}
2775
>>
karate.UseCases.LicensesCommonMethods
2155
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* App Intake *********************
290
* call read('LicensesCommonMethods.feature@GetCountyList') {}
1505
>>
karate.UseCases.LicensesCommonMethods
716
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
117
Given path '/internalapi/api/reference'
0
118
* def dbSts = db.cleanHeap()
512
119
And header authorization = 'Bearer ' + strToken
0
120
And header Content-Type = 'application/json;charset=utf-8'
0
121
And header Accept = 'text/plain'
0
# * def query = {name:countyzone&onlyActives:true}
123
And params {name:countyzone,onlyActives:true}
0
#And param onlyActives='true'
125
And request {}
0
126
When method get
201
19:22:42.317 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/reference?name=countyzone&onlyActives=true 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json;charset=utf-8 1 > Accept: text/plain 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:22:42.517 response time in milliseconds: 200 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:39 GMT 1 < Content-Length: 11712 {"values":[{"CountyId":1,"County":"New York","ShortName":"NEW","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T00:00:00","ModifiedBy":"esandoval","ModifiedDate":"2020-11-10T11:30:56.047"},{"CountyId":2,"County":"Kings","ShortName":"KING","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":3,"County":"Bronx","ShortName":"BRON","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":4,"County":"Queens","ShortName":"QUEE","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":5,"County":"Richmond","ShortName":"RICH","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":6,"County":"Nassau","ShortName":"NASS","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":7,"County":"Suffolk","ShortName":"SUFF","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":8,"County":"Westchester","ShortName":"WEST","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":9,"County":"Orange","ShortName":"ORAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":10,"County":"Putnam","ShortName":"PUTN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":11,"County":"Rockland","ShortName":"ROCK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":12,"County":"Albany","ShortName":"ALBA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":13,"County":"Clinton","ShortName":"CLIN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":14,"County":"Columbia","ShortName":"COLU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":15,"County":"Dutchess","ShortName":"DUTC","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":16,"County":"Essex","ShortName":"ESSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":17,"County":"Franklin","ShortName":"FRAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":18,"County":"Fulton","ShortName":"FULT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":19,"County":"Greene","ShortName":"GREE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":20,"County":"Hamilton","ShortName":"HAMI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":21,"County":"Montgomery","ShortName":"MONT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":22,"County":"Rensselaer","ShortName":"RENS","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":23,"County":"Saratoga","ShortName":"SARA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":24,"County":"Schenectady","ShortName":"SCHE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":25,"County":"Schoharie","ShortName":"SCHO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":26,"County":"Sullivan","ShortName":"SULL","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":27,"County":"Ulster","ShortName":"ULST","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":28,"County":"Warren","ShortName":"WARR","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":29,"County":"Washington","ShortName":"WASH","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":30,"County":"Allegany","ShortName":"ALLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":31,"County":"Cattaraugus","ShortName":"CATT","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":32,"County":"Chautauqua","ShortName":"CHAU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":33,"County":"Chemung","ShortName":"CHEM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":34,"County":"Erie","ShortName":"ERIE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":35,"County":"Genesee","ShortName":"GENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":36,"County":"Livingston","ShortName":"LIVI","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":37,"County":"Monroe","ShortName":"MONR","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":38,"County":"Niagara","ShortName":"NIAG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":39,"County":"Ontario","ShortName":"ONTA","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":40,"County":"Orleans","ShortName":"ORLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":41,"County":"Schuyler","ShortName":"SCHU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":42,"County":"Seneca","ShortName":"SENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":43,"County":"Steuben","ShortName":"STEU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":44,"County":"Wayne","ShortName":"WAYN","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":45,"County":"Wyoming","ShortName":"WYOM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":46,"County":"Yates","ShortName":"YATE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":47,"County":"Broome","ShortName":"BROO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":48,"County":"Chenango","ShortName":"CHEN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":49,"County":"Cortland","ShortName":"CORT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":50,"County":"Delaware","ShortName":"DELA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":51,"County":"Herkimer","ShortName":"HERK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":52,"County":"Jefferson","ShortName":"JEFF","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":53,"County":"Lewis","ShortName":"LEWI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":54,"County":"Madison","ShortName":"MADI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":55,"County":"Oneida","ShortName":"ONEI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":56,"County":"Onondaga","ShortName":"ONON","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":57,"County":"Oswego","ShortName":"OSWE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":58,"County":"Otsego","ShortName":"OTSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":59,"County":"St. Lawrence","ShortName":"ST L","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":60,"County":"Cayuga","ShortName":"CAYU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":61,"County":"Tioga","ShortName":"TIOG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":62,"County":"Tompkins","ShortName":"TOMP","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.6","ModifiedBy":null,"ModifiedDate":null}],"name":"countyzone","schema":[{"columnName":"CountyId","dataType":"int","maxLenght":null,"isRequired":true},{"columnName":"County","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ShortName","dataType":"nvarchar","maxLenght":10,"isRequired":false},{"columnName":"ZoneNo","dataType":"int","maxLenght":null,"isRequired":false},{"columnName":"IsActive","dataType":"bit","maxLenght":null,"isRequired":false},{"columnName":"CreatedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"CreatedDate","dataType":"datetime","maxLenght":null,"isRequired":false},{"columnName":"ModifiedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ModifiedDate","dataType":"datetime","maxLenght":null,"isRequired":false}]}
127
* configure continueOnStepFailure = true
0
128
Then status 200
0
129
And def values = response.values
0
130
* configure continueOnStepFailure = true
0
291
* def countyData = karate.jsonPath(values, "$[?(@.CountyId == '" + CountyId + "')]")
0
292
* def countyZone = countyData[0].ZoneNo
0
293
And print countyZone
0
19:22:42.534 [print] 1
294
Given path '/internalapi/api/licensing/selectapptype/savenewlicenseapp'
0
295
* def dbSts = db.cleanHeap()
167
296
And header authorization = 'Bearer ' + strToken
0
297
And header Content-Type = 'application/json; charset=utf-8'
0
298
And header Accept = 'application/json; text/plain;*/*'
0
#* def CountysId = <countyIds>
# And print CountysId
#* string CountysName = <countynames>
# And print CountysName
#* def mainLicensePermitTypeId = <LicensePermitTypeId>
# And print mainLicensePermitTypeId
#* string ProductType = <ProductTypes>
#* string LicenseDescription = <LicDescription>
# And print ProductType
309
And request {"mainLicensePermitTypeId":'#(mainLicensePermitTypeId)',"newPermitTypeIds":[],"combinedCraftId":null,"masterFileId":null,"isApplicableForTempPermit":false,"isNotQualified":false,"isChainRestaurant":false,"addBarList":[],"countyId":'#(CountyId)',"isApplicantCurrentLicensed":false,"isExistingManufacturer":false,"selectedLicense":null,"isAssociatedTempPermit":false}
0
311
When method post
156
19:22:42.702 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/selectapptype/savenewlicenseapp 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 327 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"mainLicensePermitTypeId":40,"newPermitTypeIds":[],"combinedCraftId":null,"masterFileId":null,"isApplicableForTempPermit":false,"isNotQualified":false,"isChainRestaurant":false,"addBarList":[],"countyId":1,"isApplicantCurrentLicensed":false,"isExistingManufacturer":false,"selectedLicense":null,"isAssociatedTempPermit":false} 19:22:42.858 response time in milliseconds: 156 1 < 200 1 < Content-Length: 234 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:39 GMT [{"childAppId":null,"mainApplicationId":"NA-0111-22-119056","childApplicationId":null,"licensePermitTypeId":40,"description":"Restaurant-Beer","parentApplicationId":"NA-0111-22-119056","parentAppId":13860,"appId":13860,"formId":1165}]
312
* configure continueOnStepFailure = true
0
313
Then status 200
0
315
And def ApplicationId = response[0].mainApplicationId
0
316
And print ApplicationId
0
19:22:42.858 [print] NA-0111-22-119056
317
And match ApplicationId contains 'NA-'
0
319
* def currentYear = '-'+getYearFunc()+'-'+countyZone
1
320
And match ApplicationId contains currentYear
0
321
And def description = response[0].description
0
323
And def appId = response[0].appId
0
325
* def formId = response[0].formId
0
326
* def FormVersionId = response[0].FormVersionId
0
328
Given path '/internalapi/api/application/preview/'+appId
0
329
* def dbSts = db.cleanHeap()
169
330
And header authorization = 'Bearer ' + strToken
0
331
And header Content-Type = 'application/json; charset=utf-8'
0
332
And header Accept = 'application/json; text/plain;*/*'
0
333
And configure continueOnStepFailure = true
0
334
And request {}
0
335
When method get
153
19:22:43.029 request: 2 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13860 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > Content-Length: 2 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {} 19:22:43.182 response time in milliseconds: 153 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:52:39 GMT 2 < Content-Length: 185 {"applicationId":"NA-0111-22-119056","submitDate":null,"licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Draft"},"isLicenseApplication":true,"isPreFilled":false}
336
* configure continueOnStepFailure = true
0
337
Then status 200
0
338
And def licStatus = response.appStatus.statusDescription
0
339
And print licStatus
0
19:22:43.182 [print] Draft
340
And match licStatus == 'Draft'
0
674
* def CountyName = "New York"
0
675
* call read('LicensesCommonMethods.feature@FillAndSaveApplicantInformationPage') {county:'#(CountyName)'}
721
>>
karate.UseCases.LicensesCommonMethods
189
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
700
* def getDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
709
Given path '/internalapi/api/licensing/app/static/applicantinfo/save/'+appId
0
710
And header Content-Type = 'application/json; charset=utf-8'
0
712
* def autoFirstName = firstName + getDate()
0
713
* def legalName = autoFirstName + lastName
0
714
And header Accept = 'application/json; text/plain;*/*'
0
715
And header authorization = 'Bearer ' + strToken
0
716
And request {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":'#(indOrgCode)',"corporateStructure":'#(CorporateStructureDropDownCode)',"firstName":'#(autoFirstName)',"lastName":'#(lastName)',"middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":'#(legalName)',"id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":'#(IndOrgSelectionDropDown)',"corporateStructureText":'#(CorporateStructureDropDown)',"isIndividual":'#(isIndStatus)'},"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"2","phoneTypeText":"Office","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}}
0
717
When method post
186
19:22:43.711 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/applicantinfo/save/13860 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2167 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":1,"corporateStructure":1,"firstName":"Automation20221115192243","lastName":"Automation","middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":"Automation20221115192243Automation","id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":"Individual","corporateStructureText":"Individual","isIndividual":true},"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"2","phoneTypeText":"Office","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}} 19:22:43.896 response time in milliseconds: 185 1 < 200 1 < Content-Length: 2191 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:41 GMT {"businessInfo":{"id":0,"website":null,"isLicensed":false,"isAssociated":false,"businessEntity":{"id":3988,"individualOrganization":"1","corporateStructure":1,"isEmployeeForSoleProprietor":null,"firstName":"Automation20221115192243","lastName":"Automation","middleName":"AutoMidName","ssn":"","fein":"","legalName":"Automation20221115192243Automation","suffix":"1","corporateStructureText":"Individual","individualOrganizationText":"Individual","isIndividual":true},"address":{"addressId":29335,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"US","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"NY","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25247,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":7790,"phoneType":3,"countryCode":"91","phone":"999-999-9999","phoneExtension":"1234"}]}},"premisesInfo":{"id":13160,"dba":null,"countyId":1,"countyName":"New York","isDbaSearched":null,"isPremisesRequired":true,"licensePermitID":"","address":{"addressId":29336,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"US","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"NY","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25248,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":7791,"phoneType":2,"countryCode":"+91","phone":"999-999-9999","phoneExtension":"1234"}]}},"applicantDetail":{"id":9752,"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"isPhysicalChange":null,"applicantStatement":{"id":4293,"nameOfApplicant":null,"title":null,"signature":null,"date":null}}}
718
Then status 200
0
676
* call read('LicensesCommonMethods.feature@FillAndSavePrincipalPage') {}
698
>>
karate.UseCases.LicensesCommonMethods
184
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
745
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
754
Given path '/internalapi/api/licensing/app/static/principal/save/'+appId
0
755
And header Content-Type = 'application/json; charset=utf-8'
0
756
* def prncipalName = firstName + getDate1()
0
757
* def dt = licDate()
0
758
And header Accept = 'application/json; text/plain;*/*'
0
759
And header authorization = 'Bearer ' + strToken
0
760
And request {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":'#(convictedOfCrime)',"percentageOfOwners":'#(percentageOfOwners)',"isFingerprintRequired":'#(isFingerprintRequired)',"isFingerprintsApproved":'#(isFingerprintsApproved)',"title":"15","numberOfShares":"","isSignature":false,"date":'#(dt)',"address":{"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"stateId":'#(stateCode)',"county":'#(CountyName)',"city":"New York","zipCode":'#(zipCode)',"zip4":'#(postalCode)',"country":'#(countryName)',"stateName":'#(CityName)',"countryId":229,"zip":'#(zipCode)'},"person":{"personId":0,"firstName":'#(prncipalName)',"middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":'#(dt)',"age":"","choosedEntity":null,"ssnFormat":"","suffixText":"JR"},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":'#(emailId)',"confirmEmail":'#(emailId)'},"titleText":"Vice President","convictedOfCrimeText":"No","disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
0
# {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":"" ,"percentageOfOwners":"" ,"isFingerprintRequired":true ,"isFingerprintsApproved":true ,"title":"","dcjsFingerPrintStatus":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"","addressLine2":"","stateId":40,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"New York","countryId":229,"zip":""},"person":{"personId":0,"firstName":"XA","middleName":"","lastName":"sa","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":null,"confirmEmail":null},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
762
When method post
182
19:22:44.417 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/save/13860 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 1107 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":"1","percentageOfOwners":"20","isFingerprintRequired":true,"isFingerprintsApproved":true,"title":"15","numberOfShares":"","isSignature":false,"date":"2022-11-15T19:22:44.416Z","address":{"addressLine1":"Address1","addressLine2":"Address2","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation20221115192244","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T19:22:44.416Z","age":"","choosedEntity":null,"ssnFormat":"","suffixText":"JR"},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":"automation@svam.com","confirmEmail":"automation@svam.com"},"titleText":"Vice President","convictedOfCrimeText":"No","disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]} 19:22:44.598 response time in milliseconds: 181 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:41 GMT 1 < Content-Length: 1390 {"entities":[],"principals":[{"principalId":3283,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":true,"isFingerprintsApproved":true,"percentageOfOwners":20.0,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","entities":null,"numberOfShares":"","isSignature":false,"isRemove":false,"date":"2022-11-15T00:00:00","convictedOfCrime":"1","title":"15","isLicensed":false,"isAssociated":false,"person":{"personId":5574,"firstName":"Automation20221115192244","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T00:00:00","serialNo":0,"age":0,"choosedEntity":[]},"address":{"addressId":29337,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25249,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
763
Then status 200
0
677
* call read('LicensesCommonMethods.feature@FillAndSaveRepresentativePage') {}
754
>>
karate.UseCases.LicensesCommonMethods
157
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Representative *********************
790
Given path '/internalapi/api/licensing/app/static/rep/save/'+appId
0
791
And header authorization = 'Bearer ' + strToken
0
792
And request {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":'#(CountyName)',"city":'#(CityName)',"zipCode":"10011","country":"United States (US)","stateName":'#(CityName)',"countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""}
0
793
When method post
155
19:22:45.211 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/rep/save/13860 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 897 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":"New York","city":"New York","zipCode":"10011","country":"United States (US)","stateName":"New York","countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""} 19:22:45.366 response time in milliseconds: 155 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:42 GMT 1 < Content-Length: 4 true
794
Then status 200
0
795
And def serverResponse = response
0
678
* call read('LicensesCommonMethods.feature@FillAndSaveMethodOfOperationPage') {}
1457
>>
karate.UseCases.LicensesCommonMethods
198
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
6389
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
6398
Given path '/internalapi/api/licensing/app/save'
0
6399
And header Content-Type = 'application/json; charset=utf-8'
0
6400
* def prncipalName = firstName + getDate1()
0
6401
* def dt = licDate()
0
6402
And header Accept = 'application/json; text/plain;*/*'
0
6403
And header authorization = 'Bearer ' + strToken
0
6404
And request {"isApproved":false,"appId":'#(appId)',"formID":1165,"applicationID":"","formName":"","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":1,"formCategory":{},"formCategoryId":1,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and Policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1993,"key":"","label":"Will the business employ a manager?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1994,"key":"","label":"If no, will the principals manage?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1995,"key":"","label":"If Premises is not a caterer establishment, will the premises periodically close to host private events?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1996,"key":"","label":"If Yes, How Frequently?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"Yes","fieldID":1997,"key":"","label":"Will the premises have music?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1998,"key":"","label":"If Live Music, Give Details","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1999,"key":"","label":"Will the premises use the service of an event promoter?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2000,"key":"","label":"Will the Premises Permit Dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2001,"key":"","label":"Will there be exotic dancing, including but not limited to topless entertainment, pole dancing and or lap dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2002,"key":"","label":"Will there be topless entertainment?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":16,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2003,"key":"","label":"Will Security Personnel be used at the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":17,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2004,"key":"","label":"How many?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":18,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2005,"key":"","label":"Provide your proprietary security guard employer unique Identification number assigned to the business by the NYS Department of State Division of Licensing Services or the name of the security company through which the security personnel will be hired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":19,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2006,"key":"","label":"Provide a detailed plan of supervision for the premises to be licensed. Clearly describe how you will maintain control and order over the licensed premises. How will you monitor alcohol sales and prevent sales to minors and sales to intoxicated persons? How will you handle unruly patrons, altercations, etc., to prevent the premises from becoming disorderly?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":20,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2007,"key":"","label":"Are all responses provided in the application consistent with the information provided to the municipality or community board within the standardized notice form for providing thirty day advance notice","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":21,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2008,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":22,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"4","fieldID":2051,"key":"","label":"If Yes, check all that apply","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2052,"key":"","label":"Who will be permitted to dance?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"Method_of_Operation","key":"0","label":"Method Of Operation","order":11,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isStatic":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"parentSection":"","subSections":[],"sectionFieldOrders":[],"address":{"addressLine1":"","addressLine2":"","stateId":null,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"","countryId":229}}],"formVersionId":1699,"version":25,"licenseDescription":"Restaurant-Beer","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"showAbcOfficer":false,"showCorpChange":false,"showEndorsement":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant_Information","Principal","Representative","Landlord_Identification","Personal_Questionnaire"],"showPQ":true,"showCC":false,"showManuOnPrem":false,"licPermitTypeId":40,"tabVisitied":{"Applicant Information":false,"Principal":false,"Representative":false,"Landlord Identification":false,"Personal Questionnaire":false}}
1
6406
When method post
194
19:22:46.631 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 12993 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13860,"formID":1165,"applicationID":"","formName":"","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":1,"formCategory":{},"formCategoryId":1,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and Policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1993,"key":"","label":"Will the business employ a manager?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1994,"key":"","label":"If no, will the principals manage?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1995,"key":"","label":"If Premises is not a caterer establishment, will the premises periodically close to host private events?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1996,"key":"","label":"If Yes, How Frequently?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"Yes","fieldID":1997,"key":"","label":"Will the premises have music?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1998,"key":"","label":"If Live Music, Give Details","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1999,"key":"","label":"Will the premises use the service of an event promoter?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2000,"key":"","label":"Will the Premises Permit Dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2001,"key":"","label":"Will there be exotic dancing, including but not limited to topless entertainment, pole dancing and or lap dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2002,"key":"","label":"Will there be topless entertainment?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":16,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2003,"key":"","label":"Will Security Personnel be used at the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":17,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2004,"key":"","label":"How many?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":18,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2005,"key":"","label":"Provide your proprietary security guard employer unique Identification number assigned to the business by the NYS Department of State Division of Licensing Services or the name of the security company through which the security personnel will be hired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":19,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2006,"key":"","label":"Provide a detailed plan of supervision for the premises to be licensed. Clearly describe how you will maintain control and order over the licensed premises. How will you monitor alcohol sales and prevent sales to minors and sales to intoxicated persons? How will you handle unruly patrons, altercations, etc., to prevent the premises from becoming disorderly?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":20,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2007,"key":"","label":"Are all responses provided in the application consistent with the information provided to the municipality or community board within the standardized notice form for providing thirty day advance notice","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":21,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2008,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":22,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"4","fieldID":2051,"key":"","label":"If Yes, check all that apply","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2052,"key":"","label":"Who will be permitted to dance?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"Method_of_Operation","key":"0","label":"Method Of Operation","order":11,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isStatic":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"parentSection":"","subSections":[],"sectionFieldOrders":[],"address":{"addressLine1":"","addressLine2":"","stateId":null,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"","countryId":229}}],"formVersionId":1699,"version":25,"licenseDescription":"Restaurant-Beer","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"showAbcOfficer":false,"showCorpChange":false,"showEndorsement":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant_Information","Principal","Representative","Landlord_Identification","Personal_Questionnaire"],"showPQ":true,"showCC":false,"showManuOnPrem":false,"licPermitTypeId":40,"tabVisitied":{"Applicant Information":false,"Principal":false,"Representative":false,"Landlord Identification":false,"Personal Questionnaire":false}} 19:22:46.820 response time in milliseconds: 189 1 < 200 1 < Content-Length: 51 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:44 GMT {"appId":13860,"applicationId":"NA-0111-22-119056"}
6407
Then status 200
0
679
* call read('LicensesCommonMethods.feature@FeesValidation') {amount:'#(totalFees)'}
6271
>>
karate.UseCases.LicensesCommonMethods
2412
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
2
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
810
* def futureDateFunc =
1
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
820
* def futureDate = futureDateFunc()
6
822
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
832
* def date = getDate2()
1
834
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
835
And header Content-Type = 'application/json; charset=utf-8'
0
836
And header Accept = 'application/json; text/plain;*/*'
0
837
And header authorization = 'Bearer ' + strToken
0
838
And request {}
0
839
When method get
253
19:22:50.670 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13860 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:22:50.921 response time in milliseconds: 249 1 < 200 1 < Content-Length: 658 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:48 GMT [{"licenseName":"Restaurant - Beer","applicationId":"NA-0111-22-119056","applicationTypeId":1,"appFeesId":0,"appId":13860,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":0.0,"totalFees":0.0,"filingFees":100.00,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
840
Then status 200
0
841
And def serverResponse = response
2
842
* def licTerm = serverResponse[0].term
1
843
* def licFees = serverResponse[0].licensingFees+''
0
844
* def licTermDesc = serverResponse[0].termDesc
0
845
* def licFeesRefId = serverResponse[0].feesRefId
0
846
* def licAncillaryFees = serverResponse[0].ancillaryFees+''
0
847
* def licfilingFees = serverResponse[0].filingFees+''
0
848
* def licInitialFees = serverResponse[0].initialFees
0
849
* def bndFees = serverResponse[0].bondFee
0
850
* def isBondRequired = serverResponse[0].isBondRequired
0
851
And def totalFees = serverResponse[0].licensingFees+serverResponse[0].filingFees
0
852
And print totalFees
1
19:22:50.925 [print] 1060.0
855
Given path '/internalapi/api/notification/SaveNotification'
0
857
And header Content-Type = 'application/json; charset=utf-8'
0
858
And header Accept = 'application/json; text/plain;*/*'
0
859
And header authorization = 'Bearer ' + strToken
0
860
And request {"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}
0
861
When method post
156
19:22:50.926 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/notification/SaveNotification 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 2006 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13860,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13860,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13860,"createdBy":"Tarun Gupta"} 19:22:51.081 response time in milliseconds: 155 2 < 200 2 < Content-Length: 5 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:52:48 GMT false
862
Then status 200
0
863
And print response
0
19:22:51.081 [print] false
# And header Content-Type = 'application/json; charset=utf-8'
869
Given path 'internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
871
And header Accept = 'application/json; text/plain;*/*'
0
872
And header authorization = 'Bearer ' + strToken
0
874
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":'#(amount)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":"0.00","totalFees":'#(totalFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(licTerm)',"termDesc":'#(licTermDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
1
875
When method post
227
19:22:51.084 request: 3 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13860/false 3 > Accept: application/json; text/plain;*/* 3 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 3 > Content-Type: application/json; charset=UTF-8 3 > Content-Length: 5071 3 > Host: slaleapqaapi.svam.com 3 > Connection: Keep-Alive 3 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 3 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13860,"slaintakeDate":"2022-11-15T19:22:50.667Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:22:50.667Z","amount":1060}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119056","applicationTypeId":1,"appFeesId":0,"appId":13860,"feesRefId":6039,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"0.00","totalFees":1060.0,"filingFees":"100","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":1060.0,"amountReceived":"0.00","waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-11-22T19:22:50.656Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13860,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13860,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13860,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13860,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13860,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13860,"createdBy":"Tarun Gupta"},"taskId":null} 19:22:51.310 response time in milliseconds: 224 3 < 200 3 < Content-Length: 4 3 < Content-Type: application/json; charset=utf-8 3 < Server: Microsoft-IIS/10.0 3 < Strict-Transport-Security: max-age=2592000 3 < X-Powered-By: ASP.NET 3 < Date: Tue, 15 Nov 2022 13:52:48 GMT true
876
Then status 200
0
878
Given path 'internalapi/api/licensing/fees/check-payments/get/'+appId
0
879
And header authorization = 'Bearer ' + strToken
0
880
And request {}
0
881
When method get
197
19:22:51.318 request: 4 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/check-payments/get/13860 4 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 4 > Content-Type: application/json; charset=UTF-8 4 > Content-Length: 2 4 > Host: slaleapqaapi.svam.com 4 > Connection: Keep-Alive 4 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 4 > Accept-Encoding: gzip,deflate {} 19:22:51.511 response time in milliseconds: 193 4 < 200 4 < Content-Length: 442 4 < Content-Type: application/json; charset=utf-8 4 < Server: Microsoft-IIS/10.0 4 < Strict-Transport-Security: max-age=2592000 4 < X-Powered-By: ASP.NET 4 < Date: Tue, 15 Nov 2022 13:52:48 GMT [{"checkDetailId":2343,"appId":13860,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T00:00:00","slaintakeDate":"2022-11-15T00:00:00","amount":1060.0000,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T08:52:48.613","modifiedBy":null,"modifiedDate":null}]
882
Then status 200
0
883
And def checkDetailId = response[0].checkDetailId
0
884
And print checkDetailId
0
19:22:51.512 [print] 2343
885
* def amount = response[0].amount
0
886
* def underpaidAmount = totalFees-amount
0
888
And print 'underpaidAmount- ',underpaidAmount
0
19:22:51.512 [print] underpaidAmount- 0.0
890
Given path '/internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
891
And header Content-Type = 'application/json; charset=utf-8'
0
892
* def futureDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
903
* def futureDate = futureDateFunc()
2
904
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
913
* def date = getDate2()
0
915
And header Accept = 'application/json; text/plain;*/*'
0
916
And header authorization = 'Bearer ' + strToken
0
917
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":'#(totalFees)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":'#(licInitialFees)',"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":'#(renewalFees)',"totalFees":'#(totalFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":'#(licAncillaryFees)',"isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
1
920
When method post
280
19:22:51.521 request: 5 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13860/false 5 > Content-Type: application/json; charset=utf-8 5 > Accept: application/json; text/plain;*/* 5 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 5 > Content-Length: 5068 5 > Host: slaleapqaapi.svam.com 5 > Connection: Keep-Alive 5 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 5 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13860,"slaintakeDate":"2022-11-15T19:22:51.516Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:22:51.516Z","amount":1060.0}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119056","applicationTypeId":1,"appFeesId":0,"appId":13860,"feesRefId":6039,"initialFees":0.0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"30","totalFees":1060.0,"filingFees":"100","ancillaryFees":"0","isFeesWaived":false,"underPaymentAmount":1060.0,"amountReceived":"0.00","waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-11-22T19:22:50.656Z","emailNotificationDetail":{"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13860,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13860,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13860,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13860,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13860,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13860,"createdBy":"Tarun Gupta"},"taskId":null} 19:22:51.797 response time in milliseconds: 275 5 < 200 5 < Content-Type: application/json; charset=utf-8 5 < Server: Microsoft-IIS/10.0 5 < Strict-Transport-Security: max-age=2592000 5 < X-Powered-By: ASP.NET 5 < Date: Tue, 15 Nov 2022 13:52:48 GMT 5 < Content-Length: 4 true
921
Then status 200
0
# ********* SAVE Application Details To Save *********************
928
Given path '/internalapi/api/licensing/app/save'
0
929
And header authorization = 'Bearer ' + strToken
0
930
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":'#(CityName)',"fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
4
931
When method post
313
19:22:51.814 request: 6 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 6 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 6 > Content-Type: application/json; charset=UTF-8 6 > Content-Length: 30721 6 > Host: slaleapqaapi.svam.com 6 > Connection: Keep-Alive 6 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 6 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13860,"formID":1165,"applicationID":"NA-0111-22-119056","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:22:52.117 response time in milliseconds: 301 6 < 200 6 < Content-Length: 51 6 < Content-Type: application/json; charset=utf-8 6 < Server: Microsoft-IIS/10.0 6 < Strict-Transport-Security: max-age=2592000 6 < X-Powered-By: ASP.NET 6 < Date: Tue, 15 Nov 2022 13:52:49 GMT {"appId":13860,"applicationId":"NA-0111-22-119056"}
932
Then status 200
0
935
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
1
936
And header authorization = 'Bearer ' + strToken
0
937
And header Content-Type = 'application/json; charset=utf-8'
0
938
And header Accept = 'application/json; text/plain;*/*'
0
939
And request ""
0
940
When method get
272
19:22:52.119 request: 7 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13860 7 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 7 > Content-Type: application/json; charset=utf-8 7 > Accept: application/json; text/plain;*/* 7 > Content-Length: 0 7 > Host: slaleapqaapi.svam.com 7 > Connection: Keep-Alive 7 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 7 > Accept-Encoding: gzip,deflate 19:22:52.390 response time in milliseconds: 267 7 < 200 7 < Content-Length: 660 7 < Content-Type: application/json; charset=utf-8 7 < Server: Microsoft-IIS/10.0 7 < Strict-Transport-Security: max-age=2592000 7 < X-Powered-By: ASP.NET 7 < Date: Tue, 15 Nov 2022 13:52:49 GMT [{"licenseName":"Restaurant - Beer","applicationId":"NA-0111-22-119056","applicationTypeId":1,"appFeesId":3079,"appId":13860,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":0.0,"totalFees":0.0,"filingFees":100.00,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
941
Then status 200
0
942
And print response[0].appFeesId
0
19:22:52.391 [print] 3079
943
And def appFeesId1 = response[0].appFeesId
0
944
And def feesRefId1 = response[0].feesRefId
0
945
And print appFeesId1
0
19:22:52.391 [print] 3079
946
And print feesRefId1
0
19:22:52.391 [print] 6039
947
And def applicationTypeId = response[0].applicationTypeId
0
948
And print applicationTypeId
0
19:22:52.392 [print] 1
# ********* Save PAYMENT *********************
951
Given path '/internalapi/api/licensing/fees/details/save/'+appId +'/false'
0
953
* def slaDate = licFeesDate()
1
954
* def slaaDate = licDate()
1
955
* def licInitialFees1 = licInitialFees+''
0
956
And print licInitialFees1
0
19:22:52.395 [print] 0
957
* def renewalFees1 = renewalFees+''
0
958
And print renewalFees1
0
19:22:52.395 [print] 30
959
* def totalFees1 = totalFees+''
0
961
And print totalFees1
0
19:22:52.396 [print] 1060
962
* def licAncillaryFees1 = licAncillaryFees+''
0
963
* def licfilingFees1 = licfilingFees+''
0
965
And header authorization = 'Bearer ' + strToken
0
966
And request {"checks":[{"checkDetailId":'#(checkDetailId)',"appId":'#(appId)',"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":'#(date)',"slaintakeDate":'#(date)',"amount":'#(amount)',"appliedTo":null,"amountUsed":'#(amount)',"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":'#(date)',"modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":'#(licFeesRefId)',"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":"0.00","totalFees":'#(totalFees1)',"filingFees":'#(licfilingFees1)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(underpaidAmount)',"amountReceived":'#(amount)',"waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":'#(appId)',"checkDetailId":'#(checkDetailId)',"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":'#(amount)',"amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
1
971
When method post
293
19:22:52.415 request: 8 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13860/false 8 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 8 > Content-Type: application/json; charset=UTF-8 8 > Content-Length: 5458 8 > Host: slaleapqaapi.svam.com 8 > Connection: Keep-Alive 8 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 8 > Accept-Encoding: gzip,deflate {"checks":[{"checkDetailId":2343,"appId":13860,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T19:22:51.516Z","slaintakeDate":"2022-11-15T19:22:51.516Z","amount":1060.0,"appliedTo":null,"amountUsed":1060.0,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T19:22:51.516Z","modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119056","applicationTypeId":1,"appFeesId":6039,"appId":13860,"feesRefId":6039,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"0.00","totalFees":"1060","filingFees":"100","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":1060.0,"waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":13860,"checkDetailId":2343,"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":1060.0,"amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":"2022-11-22T19:22:50.656Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13860,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13860,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13860,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13860,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13860,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13860,"createdBy":"Tarun Gupta"},"taskId":null} 19:22:52.693 response time in milliseconds: 277 8 < 200 8 < Content-Length: 4 8 < Content-Type: application/json; charset=utf-8 8 < Server: Microsoft-IIS/10.0 8 < Strict-Transport-Security: max-age=2592000 8 < X-Powered-By: ASP.NET 8 < Date: Tue, 15 Nov 2022 13:52:49 GMT true
972
Then status 200
0
973
And print response
2
19:22:52.694 [print] true
# ********* SAVE Application Details To Save *********************
978
Given path '/internalapi/api/licensing/app/save'
0
979
And header authorization = 'Bearer ' + strToken
0
980
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":'#(CityName)',"fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
3
981
When method post
380
19:22:52.706 request: 9 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 9 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 9 > Content-Type: application/json; charset=UTF-8 9 > Content-Length: 30721 9 > Host: slaleapqaapi.svam.com 9 > Connection: Keep-Alive 9 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 9 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13860,"formID":1165,"applicationID":"NA-0111-22-119056","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:22:53.079 response time in milliseconds: 372 9 < 200 9 < Content-Length: 51 9 < Content-Type: application/json; charset=utf-8 9 < Server: Microsoft-IIS/10.0 9 < Strict-Transport-Security: max-age=2592000 9 < X-Powered-By: ASP.NET 9 < Date: Tue, 15 Nov 2022 13:52:49 GMT {"appId":13860,"applicationId":"NA-0111-22-119056"}
982
Then status 200
0
983
And def serverResponse = response
2
681
* call read('LicensesCommonMethods.feature@SubmitLicenseAndValidateLicStatus') {expStatus:'Awaiting Review'}
11169
>>
karate.UseCases.LicensesCommonMethods
9031
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Application SUBMIT *********************
1099
Given path '/internalapi/api/licensing/app/submit'
0
1100
And header authorization = 'Bearer ' + strToken
0
1101
And request {"appId":'#(appId)',"wfType":null}
0
1102
When method post
272
19:22:55.232 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/submit 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 29 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"appId":13860,"wfType":null} 19:22:55.503 response time in milliseconds: 271 1 < 200 1 < Content-Length: 123 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:52:52 GMT {"success":true,"submittedApps":[{"success":true,"taskId":0,"appId":13860,"applicationId":"NA-0111-22-119056","error":""}]}
1103
Then status 200
0
1104
And def serverResponse = response
1
1105
And match response.success == true
1
1106
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
8754
>>
karate.UseCases.LicensesCommonMethods
5770
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
3
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
21
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
5
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
5535
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
202
19:23:04.050 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13860 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:23:04.250 response time in milliseconds: 200 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:01 GMT 1 < Content-Length: 215 {"applicationId":"NA-0111-22-119056","submitDate":"2022-11-15T08:52:52.71","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:23:04.251 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
2
682
* call read('LicensesCommonMethods.feature@AssignApplicationsToExaminer') {}
4289
>>
karate.UseCases.LicensesCommonMethods
2620
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* AssignApplicationsSaveDigestDataToExaminer *********************
1139
Given path '/internalapi/api/licensing/examiner/assignApplicationsToExaminer'
0
1140
And header authorization = 'Bearer ' + strToken
0
1141
And request [{"appId":'#(appId)',"examinerId":1069,"priority":"Normal"}]
0
1142
When method post
308
19:23:05.935 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/examiner/assignApplicationsToExaminer 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 55 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate [{"appId":13860,"examinerId":1069,"priority":"Normal"}] 19:23:06.214 response time in milliseconds: 278 1 < 200 1 < Content-Length: 5 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:03 GMT false
1143
And def serverResponse = response
0
1144
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
2308
>>
karate.UseCases.LicensesCommonMethods
524
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
280
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
241
19:23:08.322 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13860 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:23:08.546 response time in milliseconds: 223 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:05 GMT 1 < Content-Length: 215 {"applicationId":"NA-0111-22-119056","submitDate":"2022-11-15T08:52:52.71","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:23:08.546 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
0
683
* call read('LicensesCommonMethods.feature@ExaminerReviewApprovalToLB') {}
2072
>>
karate.UseCases.LicensesCommonMethods
1438
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
8
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Examiner Review Approval to LB *********************
1149
* def summisionDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS"); var date = new java.util.Date(); return sdf.format(date); }
1157
Given path '/internalapi/api/licensing/examiner-review/SaveNewLicense'
0
1158
* def formatedSumbitDate = summisionDate()
0
1159
And header authorization = 'Bearer ' + strToken
0
1160
And header current-wfroleid = 4
0
1161
And request {"isFingerPrintsApproved":false,"isFingerPrintsRequired":false,"isCorpLLCDissolved":false,"isCorpLLCDTaken":false,"isSendPDLetter":false,"isDisable500LB_FBPT":false,"isDisableLBForPD":false,"isDisableLBForCaseClosed":false,"isDisableLateRenewalAndUnderpayment":false,"isLiquidatorPermitHasCompleted":-1,"isSubmit":true,"fieldDeficiencies":[],"masterFileData":[],"combinedCraftData":[],"application":{"applicationCategory":1,"appId":'#(appId)',"applicationId":'#(ApplicationId)',"licePermitTypeId":null,"applicationTypeId":1,"formVersionId":1231,"formId":'#(formId)',"legalName":'#(legalName)',"submitDate":'#(formatedSumbitDate)',"isGISRequired":null,"licenseDescription":'#(description)',"recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":'#(CityName)',"priority":"Normal","expirationDate":null,"appStatusId":3,"taskStatus":"Awaiting Review","taskId":1026,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":true,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":false,"isNotQualified":false,"eventDate":null,"appStatus":{"appStatusId":3,"statusDescription":"Under Review","isActive":true,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":{"appExaminerId":1069,"appId":'#(appId)',"examinerId":1069,"name":null,"assignDate":'#(formatedSumbitDate)',"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"assignAppToLB":null,"licePermitType":{"licPermitTypeId":'#(mainLicensePermitTypeId)',"type":"1","category":"1","product":'#(productName)',"class":null,"description":null,"sectionOfLaw":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isTempPermit":false,"isELicensingPermit":false,"isAdditionalBar":false},"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":'#(mainLicensePermitTypeId)',"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":true,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":'#(formatedSumbitDate)'},"appId":'#(appId)',"notificationTypeId":2028,"applicationType":1,"decisionType":{"name":"Send to Licensing Board","value":2},"emailNotificationModel":{"applicant":{},"attorney":{},"communityBoard":{},"other":{}},"hasErrors":[],"taskId":1026,"newComments":"","recommendedDecisionId":null};
0
1162
When method post
258
19:23:09.197 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/examiner-review/SaveNewLicense 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > current-wfroleid: 4 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 3055 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isFingerPrintsApproved":false,"isFingerPrintsRequired":false,"isCorpLLCDissolved":false,"isCorpLLCDTaken":false,"isSendPDLetter":false,"isDisable500LB_FBPT":false,"isDisableLBForPD":false,"isDisableLBForCaseClosed":false,"isDisableLateRenewalAndUnderpayment":false,"isLiquidatorPermitHasCompleted":-1,"isSubmit":true,"fieldDeficiencies":[],"masterFileData":[],"combinedCraftData":[],"application":{"applicationCategory":1,"appId":13860,"applicationId":"NA-0111-22-119056","licePermitTypeId":null,"applicationTypeId":1,"formVersionId":1231,"formId":1165,"legalName":"Automation20221115192243Automation","submitDate":"2022-11-15T19:23:09.196","isGISRequired":null,"licenseDescription":"Restaurant-Beer","recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":"New York","priority":"Normal","expirationDate":null,"appStatusId":3,"taskStatus":"Awaiting Review","taskId":1026,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":true,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":false,"isNotQualified":false,"eventDate":null,"appStatus":{"appStatusId":3,"statusDescription":"Under Review","isActive":true,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":{"appExaminerId":1069,"appId":13860,"examinerId":1069,"name":null,"assignDate":"2022-11-15T19:23:09.196","isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"assignAppToLB":null,"licePermitType":{"licPermitTypeId":40,"type":"1","category":"1","product":"RestaurantBeer","class":null,"description":null,"sectionOfLaw":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isTempPermit":false,"isELicensingPermit":false,"isAdditionalBar":false},"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":40,"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":true,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":"2022-11-15T19:23:09.196"},"appId":13860,"notificationTypeId":2028,"applicationType":1,"decisionType":{"name":"Send to Licensing Board","value":2},"emailNotificationModel":{"applicant":{},"attorney":{},"communityBoard":{},"other":{}},"hasErrors":[],"taskId":1026,"newComments":"","recommendedDecisionId":null} 19:23:09.454 response time in milliseconds: 257 1 < 200 1 < Content-Length: 4 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:05 GMT true
1163
Then status 200
0
1164
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
1168
>>
karate.UseCases.LicensesCommonMethods
349
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
186
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
157
19:23:10.458 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13860 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:23:10.614 response time in milliseconds: 155 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:07 GMT 1 < Content-Length: 215 {"applicationId":"NA-0111-22-119056","submitDate":"2022-11-15T08:52:52.71","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:23:10.614 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
0
684
* call read('LicensesCommonMethods.feature@LBClaimingQueue') {}
2183
>>
karate.UseCases.LicensesCommonMethods
1336
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* LB Claiming Queue *********************
1249
Given path 'internalapi/api/licensing/claiming-queue/add/'+appId +'/1069'
0
1250
And header authorization = 'Bearer ' + strToken
0
1251
And header current-wfroleid = 5
1
1252
And request {}
0
1253
When method post
215
19:23:11.475 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/claiming-queue/add/13860/1069 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > current-wfroleid: 5 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:23:11.690 response time in milliseconds: 215 1 < 200 1 < Content-Length: 4 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:09 GMT true
1254
Then status 200
0
1255
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
1116
>>
karate.UseCases.LicensesCommonMethods
367
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
208
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
155
19:23:12.640 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13860 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:23:12.794 response time in milliseconds: 154 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:10 GMT 1 < Content-Length: 215 {"applicationId":"NA-0111-22-119056","submitDate":"2022-11-15T08:52:52.71","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:23:12.795 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1
685
* def expirationDate = fundDueDateFunc(10)
1
686
* call read('LicensesCommonMethods.feature@LBApprovalWithDueDate') {approvalName:'Approved', expStatus:'Approved'}
1977
>>
karate.UseCases.LicensesCommonMethods
1391
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* LB Approval *********************
2346
Given path '/internalapi/api/licensing/search/GetEmailNotificationByAppIdAndNotificationTypeId/'+appId+'/0'
0
2347
And header authorization = 'Bearer ' + strToken
0
2348
And request ''
0
2349
When method get
288
19:23:13.398 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/search/GetEmailNotificationByAppIdAndNotificationTypeId/13860/0 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: text/plain; charset=UTF-8 1 > Content-Length: 0 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate 19:23:13.685 response time in milliseconds: 287 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:10 GMT 1 < Content-Length: 1959 {"applicant":{"communicationId":25247,"email":"automation@svam.com","appId":13860,"emailContactTypeId":1,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":25250,"email":"sbandi@svam.com","appId":13860,"emailContactTypeId":2,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null}}
2350
Then status 200
0
2351
And def serverResponse = response
0
2352
* def applicantCommId = serverResponse.applicant.communicationId
0
2353
* def attorneyCommId = serverResponse.attorney.communicationId
0
2355
Given path '/internalapi/api/licensing/new-license/saveDecision'
0
2356
And header authorization = 'Bearer ' + strToken
0
2357
And header current-wfroleid = 5
0
2358
* def getSelectedDecisionFunc =
0
function(value1){ if (value1 == 'Approved'){ return 1; } else if (value1 == 'Disapproved'){ return 2; } else if (value1 == 'Disapproval to Counsel'){ return 3; }else if (value1 == 'Withdrawal'){ return 4; }else if (value1 == 'Conditionally Approved'){ return 5; }else if (value1 == 'FB Decision Required'){ return 6; }else if (value1 == 'Return to Examiner'){ return 7; } else { return 1; } }
2384
* def selectedDecisionCode = getSelectedDecisionFunc(approvalName)
2
2385
And print selectedDecisionCode
0
19:23:13.689 [print] 1
2386
And request {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":'#(appId)',"applicationType":1,"applicationId":'#(ApplicationId)',"legalName":'#(legalName)',"statusId":3,"decisionType":{"name":'#(approvalName)',"value":'#(selectedDecisionCode)'},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":'#(effectiveDate)',"expirationDate":'#(expirationDate)',"stipulations":[],"descriptions":[]}}
0
2388
When method post
296
19:23:13.690 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/new-license/saveDecision 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > current-wfroleid: 5 2 > Content-Type: application/json; charset=UTF-8 2 > Content-Length: 2479 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":13860,"applicationType":1,"applicationId":"NA-0111-22-119056","legalName":"Automation20221115192243Automation","statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":"2022-11-15","expirationDate":"2022-11-25T19:23:12.811Z","stipulations":[],"descriptions":[]}} 19:23:13.985 response time in milliseconds: 295 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:53:11 GMT 2 < Content-Length: 4 true
2389
Then status 200
0
2390
And def serverResponse = response
0
2391
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
799
>>
karate.UseCases.LicensesCommonMethods
325
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
150
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
172
19:23:14.602 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13860 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:23:14.773 response time in milliseconds: 171 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:11 GMT 1 < Content-Length: 208 {"applicationId":"NA-0111-22-119056","submitDate":"2022-11-15T08:52:52.71","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Approved"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:23:14.774 [print] Approved
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1
687
* call read('LicensesCommonMethods.feature@ValidateLicenseApplicationStatus') {LicAppStatus:'Approved'}
827
>>
karate.UseCases.LicensesCommonMethods
219
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1326
Given path 'internalapi/api/GenericSearch/SearchLicense'
0
1327
And header Content-Type = 'application/json; charset=utf-8'
0
1328
And header Accept = 'application/json; text/plain;*/*'
0
1329
And header authorization = 'Bearer ' + strToken
0
1330
And params {page:1,pageSize:10}
1
1331
And request [{"dataTypeValue":"Text","key":"ApplicationId","operatorValue":"=","value":'#(ApplicationId)'}]
0
1332
When method post
215
19:23:15.396 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/GenericSearch/SearchLicense?pageSize=10&page=1 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 96 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate [{"dataTypeValue":"Text","key":"ApplicationId","operatorValue":"=","value":"NA-0111-22-119056"}] 19:23:15.610 response time in milliseconds: 214 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:12 GMT 1 < Content-Length: 684 {"data":[{"acaId":13860,"acaType":"application","applicationLicenseId":"0111-22-129123","legacySerialNo":null,"legalName":"Automation20221115192243Automation","dba":null,"licenseDescription":"Restaurant-Beer","expirationDate":"2022-11-25T00:00:00","examinerAssigned":"Tarun Gupta","premisesAddress":"Address1 Address2 New York New York New York 12345 1234 United States (US)","applicantAddress":"Address1 Address2 New York New York New York 12345 1234 United States (US)","feinSsn":"","formId":1165,"applicationId":"NA-0111-22-119056","licenseId":"0111-22-129123","wfRoleId":2,"applicationStatus":"Approved","licenseStatus":"Active"}],"total":1,"aggregateResults":null,"errors":null}
1333
Then status 200
0
1334
And print response
0
19:23:15.610 [print] { "data": [ { "acaId": 13860, "acaType": "application", "applicationLicenseId": "0111-22-129123", "legacySerialNo": null, "legalName": "Automation20221115192243Automation", "dba": null, "licenseDescription": "Restaurant-Beer", "expirationDate": "2022-11-25T00:00:00", "examinerAssigned": "Tarun Gupta", "premisesAddress": "Address1 Address2 New York New York New York 12345 1234 United States (US)", "applicantAddress": "Address1 Address2 New York New York New York 12345 1234 United States (US)", "feinSsn": "", "formId": 1165, "applicationId": "NA-0111-22-119056", "licenseId": "0111-22-129123", "wfRoleId": 2, "applicationStatus": "Approved", "licenseStatus": "Active" } ], "total": 1, "aggregateResults": null, "errors": null }
1335
* match response.data[0].applicationStatus == '#(LicAppStatus)'
1
689
* call read('LicensesCommonMethods.feature@GetLicenseId') {}
632
>>
karate.UseCases.LicensesCommonMethods
169
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
3212
Given path '/internalapi/api/licensing/LBDecision/getLicenseByAppId/' + appId +'/-1'
0
3213
And header authorization = 'Bearer ' + strToken
0
3214
* def EffectiveDate = EffDate()
0
3215
And request {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":'#(appId)',"applicationType":1,"applicationId":'#(ApplicationId)',"legalName":null,"statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":'#(EffectiveDate)',"expirationDate":'#(expiryDate)',"stipulations":[],"descriptions":[]}}
3
3216
When method get
160
19:23:16.079 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/LBDecision/getLicenseByAppId/13860/-1 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 2436 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":13860,"applicationType":1,"applicationId":"NA-0111-22-119056","legalName":null,"statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":"2022-11-15","expirationDate":"#(expiryDate)","stipulations":[],"descriptions":[]}} 19:23:16.238 response time in milliseconds: 158 1 < 200 1 < Content-Length: 2853 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:12 GMT {"license":{"licId":1472,"applicationId":null,"licenseId":"0111-22-129123","licensePermitId":null,"licePermitTypeId":40,"appId":13860,"legacySerialNo":null,"issueDate":null,"expiryDate":"2025-10-31T00:00:00","effectiveDate":"2022-11-15T00:00:00","seasonalStartDate":null,"seasonalEndDate":null,"safeKeepingExpiryDate":null,"status":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"extTempPermitEnabled":false,"application":{"applicationCategory":null,"appId":null,"applicationId":null,"licePermitTypeId":null,"applicationTypeId":null,"formVersionId":null,"formId":null,"legalName":null,"submitDate":null,"isGISRequired":null,"licenseDescription":null,"recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":null,"priority":null,"expirationDate":null,"appStatusId":null,"taskStatus":null,"taskId":null,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":null,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":null,"isNotQualified":null,"eventDate":null,"appStatus":{"appStatusId":0,"statusDescription":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":null,"assignAppToLB":null,"licePermitType":null,"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":0,"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isCaseOpenSameAddress":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"clericalName":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"isFairOrFestival":false,"isShowEffExpDateOnLBReview":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"options":null,"emailNotificationModel":null,"taskOptionsListNested":null,"days":0,"permit":null,"licPermitType":null,"licensePermitMapping":null,"licenseFee":null,"accountBalance":null,"licenseDescription":null,"isSeasonal":false,"isSummerSeasonal":false,"newExpiryDate":null,"amountDue":null,"originalLicenseFee":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"wfRoleId":0},"person":[],"totalRecord":0,"apps":[]}
3217
Then status 200
0
3218
And def serverResponse = response
0
3219
And print serverResponse
1
19:23:16.239 [print] { "license": { "licId": 1472, "applicationId": null, "licenseId": "0111-22-129123", "licensePermitId": null, "licePermitTypeId": 40, "appId": 13860, "legacySerialNo": null, "issueDate": null, "expiryDate": "2025-10-31T00:00:00", "effectiveDate": "2022-11-15T00:00:00", "seasonalStartDate": null, "seasonalEndDate": null, "safeKeepingExpiryDate": null, "status": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null, "extTempPermitEnabled": false, "application": { "applicationCategory": null, "appId": null, "applicationId": null, "licePermitTypeId": null, "applicationTypeId": null, "formVersionId": null, "formId": null, "legalName": null, "submitDate": null, "isGISRequired": null, "licenseDescription": null, "recommendedDecisionId": null, "status500": null, "isApplicableForPDLetter": false, "countyName": null, "priority": null, "expirationDate": null, "appStatusId": null, "taskStatus": null, "taskId": null, "currentWfstatus": null, "communityBoard": null, "isLicenseApplication": null, "currentDueDate": null, "isFinalDeficiency": null, "isHighlyDeficient": null, "isAllDeficienciesMet": null, "pastDueDate": null, "memo": null, "isOneTimePermit": null, "dueDateAction": null, "isDisapprovedForCause": null, "isNotQualified": null, "eventDate": null, "appStatus": { "appStatusId": 0, "statusDescription": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null }, "applicationType": null, "assignAppExaminer": null, "assignAppToLB": null, "licePermitType": null, "assoApplicationList": [ ], "isTempPermit": null, "isTempOrLiq": false, "licPermitTypeId": 0, "isAssociatedLicense": null, "effectiveDate": null, "assignedUserId": null, "amendmentTypeId": null, "amendmentType": null, "disapprovedDate": null, "condApprovedDate": null, "addressId": null, "isCaseOpen": null, "isClosed": null, "isCaseOpenSameAddress": null, "isSpecialEventPlusFour": null, "isSpecialEventInsideFiveBoroughs": null, "licStatus": null, "createdBy": null, "clericalName": null, "licenseId": null, "address": null, "isNybeApp": false, "isHearingCompleted": null, "does500FtHearingExist": null, "parentAppStatus": null, "premisesAppCount": 0, "statusDescription": null, "eventAddress": null, "isFairOrFestival": false, "isShowEffExpDateOnLBReview": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskRoleId": 0, "taskDecision": null, "isActive": null, "createdDate": null, "modifiedBy": null, "wfRoleId": 0, "modifiedDate": null }, "options": null, "emailNotificationModel": null, "taskOptionsListNested": null, "days": 0, "permit": null, "licPermitType": null, "licensePermitMapping": null, "licenseFee": null, "accountBalance": null, "licenseDescription": null, "isSeasonal": false, "isSummerSeasonal": false, "newExpiryDate": null, "amountDue": null, "originalLicenseFee": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskId": null, "taskRoleId": 0, "taskDecision": null, "wfRoleId": 0 }, "person": [ ], "totalRecord": 0, "apps": [ ] }
3220
And def licId = serverResponse.license.licId
0
3221
And def licenseId = serverResponse.license.licenseId
0
3222
And def ActEffDate = serverResponse.license.seasonalStartDate
0
3223
And def ActExpDate = serverResponse.license.expiryDate
0
3224
And print serverResponse
1
19:23:16.241 [print] { "license": { "licId": 1472, "applicationId": null, "licenseId": "0111-22-129123", "licensePermitId": null, "licePermitTypeId": 40, "appId": 13860, "legacySerialNo": null, "issueDate": null, "expiryDate": "2025-10-31T00:00:00", "effectiveDate": "2022-11-15T00:00:00", "seasonalStartDate": null, "seasonalEndDate": null, "safeKeepingExpiryDate": null, "status": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null, "extTempPermitEnabled": false, "application": { "applicationCategory": null, "appId": null, "applicationId": null, "licePermitTypeId": null, "applicationTypeId": null, "formVersionId": null, "formId": null, "legalName": null, "submitDate": null, "isGISRequired": null, "licenseDescription": null, "recommendedDecisionId": null, "status500": null, "isApplicableForPDLetter": false, "countyName": null, "priority": null, "expirationDate": null, "appStatusId": null, "taskStatus": null, "taskId": null, "currentWfstatus": null, "communityBoard": null, "isLicenseApplication": null, "currentDueDate": null, "isFinalDeficiency": null, "isHighlyDeficient": null, "isAllDeficienciesMet": null, "pastDueDate": null, "memo": null, "isOneTimePermit": null, "dueDateAction": null, "isDisapprovedForCause": null, "isNotQualified": null, "eventDate": null, "appStatus": { "appStatusId": 0, "statusDescription": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null }, "applicationType": null, "assignAppExaminer": null, "assignAppToLB": null, "licePermitType": null, "assoApplicationList": [ ], "isTempPermit": null, "isTempOrLiq": false, "licPermitTypeId": 0, "isAssociatedLicense": null, "effectiveDate": null, "assignedUserId": null, "amendmentTypeId": null, "amendmentType": null, "disapprovedDate": null, "condApprovedDate": null, "addressId": null, "isCaseOpen": null, "isClosed": null, "isCaseOpenSameAddress": null, "isSpecialEventPlusFour": null, "isSpecialEventInsideFiveBoroughs": null, "licStatus": null, "createdBy": null, "clericalName": null, "licenseId": null, "address": null, "isNybeApp": false, "isHearingCompleted": null, "does500FtHearingExist": null, "parentAppStatus": null, "premisesAppCount": 0, "statusDescription": null, "eventAddress": null, "isFairOrFestival": false, "isShowEffExpDateOnLBReview": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskRoleId": 0, "taskDecision": null, "isActive": null, "createdDate": null, "modifiedBy": null, "wfRoleId": 0, "modifiedDate": null }, "options": null, "emailNotificationModel": null, "taskOptionsListNested": null, "days": 0, "permit": null, "licPermitType": null, "licensePermitMapping": null, "licenseFee": null, "accountBalance": null, "licenseDescription": null, "isSeasonal": false, "isSummerSeasonal": false, "newExpiryDate": null, "amountDue": null, "originalLicenseFee": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskId": null, "taskRoleId": 0, "taskDecision": null, "wfRoleId": 0 }, "person": [ ], "totalRecord": 0, "apps": [ ] }
3225
And print 'licId : ' , licId
0
19:23:16.241 [print] licId : 1472
3226
And print 'licenseId : ' , licenseId
0
19:23:16.241 [print] licenseId : 0111-22-129123
3227
And match licId != []
0
3228
And match licenseId != []
0
690
And print licenseId
0
19:23:16.248 [print] 0111-22-129123
691
* def notQualifiedApplication = false
0
692
* def notQlfdAppMessage = ''
0
693
* def NameSearch = 'automation'
0
695
* call read('RenewalCommonMethods.feature@IntakeRenewalLicense') {}
2875
>>
karate.UseCases.RenewalCommonMethods
2399
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
0
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
169
Given path '/internalapi/api/licensing/search/searchLicensesAndPermits/'
0
170
And header Content-Type = 'application/json; charset=utf-8'
0
172
And header Accept = 'application/json; text/plain;*/*'
0
173
And header authorization = 'Bearer ' + strToken
0
176
And request {"WfTaskIdList":[],"LicenseStatusList":[19,45,40],"ShowLicensesAndPermits":true,"Status":null,"isTempPermit":null,"ApplicationId":null,"LicensePermitId":'#(licenseId)',"LegalName":null,"FEIN":null,"applyFor":""}
0
177
When method POST
159
19:23:16.720 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/search/searchLicensesAndPermits 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 213 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"WfTaskIdList":[],"LicenseStatusList":[19,45,40],"ShowLicensesAndPermits":true,"Status":null,"isTempPermit":null,"ApplicationId":null,"LicensePermitId":"0111-22-129123","LegalName":null,"FEIN":null,"applyFor":""} 19:23:16.879 response time in milliseconds: 159 1 < 200 1 < Content-Length: 1290 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:14 GMT {"licenses":[{"lpId":1472,"licensePermitId":"0111-22-129123","licPermitTypeId":40,"isAccociatedLicense":false,"appId":13860,"mainAppId":13860,"status":"Active","legacySerialNo":null,"isLicense":true,"isPermit":null,"issueDate":"2022-11-15T00:00:00","expiryDate":"2022-11-25T00:00:00","effectiveDate":"2022-11-15T00:00:00","safeKeepingExpiryDate":null,"licensePermitStatusId":19,"combinedCraftId":null,"masterFileId":null,"isApplicableForTransfer":null,"surrenderDate":null,"isActive":true,"createdDate":"2022-11-15T08:53:11.18","modifiedDate":null,"submitDate":"2022-11-15T08:52:52.71","description":"Restaurant-Beer","county":"New York","legalName":"Automation20221115192243Automation","fein":"","formId":1165,"isRenewalRequird":true,"dba":null,"associatePermits":[],"provisions":[],"address":{"addressId":null,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":null,"county":"New York","zipCode":"12345","zip4":null,"street":null,"telephoneNumber":null,"country":null,"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":null,"serialNo":0,"addressType":null,"state":null},"mfCCId":null}],"totalRecord":1}
178
Then status 200
0
179
* def licPermitTypeId = response.licenses[0].licPermitTypeId
0
180
* def lpId = response.licenses[0].lpId
0
181
* def effectiveDate = response.licenses[0].effectiveDate
0
182
* def expiryDate = response.licenses[0].expiryDate
0
183
* def legalName = response.licenses[0].legalName
0
184
* def licAppId = response.licenses[0].appId
0
185
* def submitDate = response.licenses[0].submitDate
0
186
* call read('LicensesCommonMethods.feature@GetCountyList') {}
1839
>>
karate.UseCases.LicensesCommonMethods
481
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
117
Given path '/internalapi/api/reference'
0
118
* def dbSts = db.cleanHeap()
331
119
And header authorization = 'Bearer ' + strToken
0
120
And header Content-Type = 'application/json;charset=utf-8'
0
121
And header Accept = 'text/plain'
0
# * def query = {name:countyzone&onlyActives:true}
123
And params {name:countyzone,onlyActives:true}
0
#And param onlyActives='true'
125
And request {}
0
126
When method get
147
19:23:18.568 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/reference?name=countyzone&onlyActives=true 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json;charset=utf-8 1 > Accept: text/plain 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:23:18.714 response time in milliseconds: 146 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:16 GMT 1 < Content-Length: 11712 {"values":[{"CountyId":1,"County":"New York","ShortName":"NEW","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T00:00:00","ModifiedBy":"esandoval","ModifiedDate":"2020-11-10T11:30:56.047"},{"CountyId":2,"County":"Kings","ShortName":"KING","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":3,"County":"Bronx","ShortName":"BRON","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":4,"County":"Queens","ShortName":"QUEE","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":5,"County":"Richmond","ShortName":"RICH","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":6,"County":"Nassau","ShortName":"NASS","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":7,"County":"Suffolk","ShortName":"SUFF","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":8,"County":"Westchester","ShortName":"WEST","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":9,"County":"Orange","ShortName":"ORAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":10,"County":"Putnam","ShortName":"PUTN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":11,"County":"Rockland","ShortName":"ROCK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":12,"County":"Albany","ShortName":"ALBA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":13,"County":"Clinton","ShortName":"CLIN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":14,"County":"Columbia","ShortName":"COLU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":15,"County":"Dutchess","ShortName":"DUTC","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":16,"County":"Essex","ShortName":"ESSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":17,"County":"Franklin","ShortName":"FRAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":18,"County":"Fulton","ShortName":"FULT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":19,"County":"Greene","ShortName":"GREE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":20,"County":"Hamilton","ShortName":"HAMI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":21,"County":"Montgomery","ShortName":"MONT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":22,"County":"Rensselaer","ShortName":"RENS","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":23,"County":"Saratoga","ShortName":"SARA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":24,"County":"Schenectady","ShortName":"SCHE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":25,"County":"Schoharie","ShortName":"SCHO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":26,"County":"Sullivan","ShortName":"SULL","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":27,"County":"Ulster","ShortName":"ULST","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":28,"County":"Warren","ShortName":"WARR","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":29,"County":"Washington","ShortName":"WASH","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":30,"County":"Allegany","ShortName":"ALLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":31,"County":"Cattaraugus","ShortName":"CATT","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":32,"County":"Chautauqua","ShortName":"CHAU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":33,"County":"Chemung","ShortName":"CHEM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":34,"County":"Erie","ShortName":"ERIE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":35,"County":"Genesee","ShortName":"GENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":36,"County":"Livingston","ShortName":"LIVI","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":37,"County":"Monroe","ShortName":"MONR","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":38,"County":"Niagara","ShortName":"NIAG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":39,"County":"Ontario","ShortName":"ONTA","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":40,"County":"Orleans","ShortName":"ORLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":41,"County":"Schuyler","ShortName":"SCHU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":42,"County":"Seneca","ShortName":"SENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":43,"County":"Steuben","ShortName":"STEU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":44,"County":"Wayne","ShortName":"WAYN","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":45,"County":"Wyoming","ShortName":"WYOM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":46,"County":"Yates","ShortName":"YATE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":47,"County":"Broome","ShortName":"BROO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":48,"County":"Chenango","ShortName":"CHEN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":49,"County":"Cortland","ShortName":"CORT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":50,"County":"Delaware","ShortName":"DELA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":51,"County":"Herkimer","ShortName":"HERK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":52,"County":"Jefferson","ShortName":"JEFF","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":53,"County":"Lewis","ShortName":"LEWI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":54,"County":"Madison","ShortName":"MADI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":55,"County":"Oneida","ShortName":"ONEI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":56,"County":"Onondaga","ShortName":"ONON","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":57,"County":"Oswego","ShortName":"OSWE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":58,"County":"Otsego","ShortName":"OTSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":59,"County":"St. Lawrence","ShortName":"ST L","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":60,"County":"Cayuga","ShortName":"CAYU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":61,"County":"Tioga","ShortName":"TIOG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":62,"County":"Tompkins","ShortName":"TOMP","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.6","ModifiedBy":null,"ModifiedDate":null}],"name":"countyzone","schema":[{"columnName":"CountyId","dataType":"int","maxLenght":null,"isRequired":true},{"columnName":"County","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ShortName","dataType":"nvarchar","maxLenght":10,"isRequired":false},{"columnName":"ZoneNo","dataType":"int","maxLenght":null,"isRequired":false},{"columnName":"IsActive","dataType":"bit","maxLenght":null,"isRequired":false},{"columnName":"CreatedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"CreatedDate","dataType":"datetime","maxLenght":null,"isRequired":false},{"columnName":"ModifiedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ModifiedDate","dataType":"datetime","maxLenght":null,"isRequired":false}]}
127
* configure continueOnStepFailure = true
0
128
Then status 200
0
129
And def values = response.values
0
130
* configure continueOnStepFailure = true
0
187
* def countyData = karate.jsonPath(values, "$[?(@.CountyId == '" + CountyId + "')]")
1
188
* def countyZone = countyData[0].ZoneNo
0
189
And print countyZone
0
19:23:18.719 [print] 1
190
Given path '/internalapi/api/licensing/renewal/save'
0
191
* def dbSts = db.cleanHeap()
220
192
And header authorization = 'Bearer ' + strToken
0
193
And header Content-Type = 'application/json; charset=utf-8'
0
194
And header Accept = 'application/json; text/plain;*/*'
0
195
And configure continueOnStepFailure = true
0
196
And request {"mainLicenseId":'#(licenseId)',"associated":[],"notQualifiedApplication":'#(notQualifiedApplication)',"NotQualifiedComments":'#(notQlfdAppMessage)'}
0
197
When method Post
176
19:23:18.939 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/renewal/save 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > Content-Length: 108 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"mainLicenseId":"0111-22-129123","associated":[],"notQualifiedApplication":false,"NotQualifiedComments":""} 19:23:19.115 response time in milliseconds: 176 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:53:16 GMT 2 < Content-Length: 170 [{"appId":13861,"formId":1167,"childAppId":null,"mainApplicationId":"RE-22-106367-01","childApplicationId":null,"licensePermitTypeId":40,"description":"Restaurant-Beer"}]
198
* configure continueOnStepFailure = true
0
199
Then status 200
0
200
* def description = response[0].description
0
201
* def appId = response[0].appId
0
202
* def formId = response[0].formId
0
203
* def ApplicationId = response[0].mainApplicationId
0
204
And print ApplicationId
0
19:23:19.115 [print] RE-22-106367-01
205
And match ApplicationId contains 'RE-'
0
207
* def currentYear = '-'+getYearFunc()+'-'
1
208
And match ApplicationId contains currentYear
0
696
* call read('RenewalCommonMethods.feature@SaveAssociatedPrincipal') {}
659
>>
karate.UseCases.RenewalCommonMethods
418
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
1
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
464
Given path '/internalapi/api/licensing/app/static/principal/'+appId
0
466
And header Content-Type = 'application/json; charset=utf-8'
0
467
And header Accept = 'application/json; text/plain;*/*'
0
468
And header authorization = 'Bearer ' + strToken
0
469
And request {}
0
470
When method get
198
19:23:19.367 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/13861 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:23:19.563 response time in milliseconds: 196 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:16 GMT 1 < Content-Length: 1388 {"entities":[],"principals":[{"principalId":3283,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":true,"isFingerprintsApproved":true,"percentageOfOwners":20.0,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","entities":null,"numberOfShares":"","isSignature":false,"isRemove":false,"date":"2022-11-15T00:00:00","convictedOfCrime":"1","title":"15","isLicensed":true,"isAssociated":true,"person":{"personId":5574,"firstName":"Automation20221115192244","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T00:00:00","serialNo":0,"age":0,"choosedEntity":[]},"address":{"addressId":29337,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25249,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
471
Then status 200
0
472
* def personResponse = response
0
473
* def principalId = personResponse.principals[0].principalId
0
474
* def personId = personResponse.principals[0].person.personId
0
475
* def licFirstName = personResponse.principals[0].person.firstName
0
476
* def licLastName = personResponse.principals[0].person.lastName
0
477
* def licCommID = personResponse.principals[0].communication.id
0
478
* def licEmailID = personResponse.principals[0].communication.email
0
479
* def licAddressId = personResponse.principals[0].address.addressId
0
480
Given path '/internalapi/api/licensing/app/static/principal/save/'+appId
0
482
And header Content-Type = 'application/json; charset=utf-8'
0
483
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
492
* def prncipalName = 'AutoRenewal'+getDate1()
1
494
And header Accept = 'application/json; text/plain;*/*'
0
495
And header authorization = 'Bearer ' + strToken
0
498
And request {"entities":[],"principals":[{"principalId":'#(principalId)',"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":true,\"isNewPrincipal\":false}","entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":'#(personId)',"firstName":'#(licFirstName)',"middleName":"","lastName":'#(licLastName)',"suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":null},"address":{"addressId":'#(licAddressId)',"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":'#(licCommID)',"email":'#(licEmailID)',"confirmEmail":'#(licEmailID)',"phones":[]}},{"principalId":0,"convictedOfCrime":"","percentageOfOwners":"","isFingerprintRequired":"","isFingerprintsApproved":"","title":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"Test Address1","addressLine2":"","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":'#(licEmailID)',"confirmEmail":'#(licEmailID)'},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
0
499
When method post
215
19:23:19.565 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/save/13861 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 2220 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"entities":[],"principals":[{"principalId":3283,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":true,\"isNewPrincipal\":false}","entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":5574,"firstName":"Automation20221115192244","middleName":"","lastName":"AutoLastName","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":null},"address":{"addressId":29337,"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25249,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}},{"principalId":0,"convictedOfCrime":"","percentageOfOwners":"","isFingerprintRequired":"","isFingerprintsApproved":"","title":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"Test Address1","addressLine2":"","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":"automation@svam.com","confirmEmail":"automation@svam.com"},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]} 19:23:19.780 response time in milliseconds: 215 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:53:17 GMT 2 < Content-Length: 2326 {"entities":[],"principals":[{"principalId":3283,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":null,"entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":5574,"firstName":"Automation20221115192244","middleName":"","lastName":"AutoLastName","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":[]},"address":{"addressId":29337,"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25249,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}},{"principalId":3284,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":null,"entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":[]},"address":{"addressId":0,"appId":null,"addressLine1":"Test Address1","addressLine2":"","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":0,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
500
Then status 200
0
697
* call read('LicensesCommonMethods.feature@FillAndSaveApplicantInformationPage') {}
697
>>
karate.UseCases.LicensesCommonMethods
200
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
700
* def getDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
709
Given path '/internalapi/api/licensing/app/static/applicantinfo/save/'+appId
0
710
And header Content-Type = 'application/json; charset=utf-8'
0
712
* def autoFirstName = firstName + getDate()
0
713
* def legalName = autoFirstName + lastName
0
714
And header Accept = 'application/json; text/plain;*/*'
0
715
And header authorization = 'Bearer ' + strToken
0
716
And request {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":'#(indOrgCode)',"corporateStructure":'#(CorporateStructureDropDownCode)',"firstName":'#(autoFirstName)',"lastName":'#(lastName)',"middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":'#(legalName)',"id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":'#(IndOrgSelectionDropDown)',"corporateStructureText":'#(CorporateStructureDropDown)',"isIndividual":'#(isIndStatus)'},"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"2","phoneTypeText":"Office","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}}
0
717
When method post
196
19:23:20.283 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/applicantinfo/save/13861 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2167 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":1,"corporateStructure":1,"firstName":"Automation20221115192320","lastName":"Automation","middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":"Automation20221115192320Automation","id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":"Individual","corporateStructureText":"Individual","isIndividual":true},"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"2","phoneTypeText":"Office","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}} 19:23:20.478 response time in milliseconds: 195 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:17 GMT 1 < Content-Length: 2187 {"businessInfo":{"id":0,"website":null,"isLicensed":true,"isAssociated":false,"businessEntity":{"id":0,"individualOrganization":"1","corporateStructure":1,"isEmployeeForSoleProprietor":null,"firstName":"Automation20221115192320","lastName":"Automation","middleName":null,"ssn":"","fein":"","legalName":"Automation20221115192320Automation","suffix":"1","corporateStructureText":"Individual","individualOrganizationText":"Individual","isIndividual":true},"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":0,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":0,"phoneType":3,"countryCode":"+91","phone":"999-999-9999","phoneExtension":"1234"}]}},"premisesInfo":{"id":0,"dba":null,"countyId":0,"countyName":null,"isDbaSearched":null,"isPremisesRequired":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":0,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":0,"phoneType":2,"countryCode":"+91","phone":"999-999-9999","phoneExtension":"1234"}]}},"applicantDetail":{"id":0,"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"isPhysicalChange":null,"applicantStatement":{"id":0,"nameOfApplicant":null,"title":null,"signature":null,"date":null}}}
718
Then status 200
0
698
* call read('LicensesCommonMethods.feature@FillAndSaveRepresentativePage') {}
734
>>
karate.UseCases.LicensesCommonMethods
204
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Representative *********************
790
Given path '/internalapi/api/licensing/app/static/rep/save/'+appId
0
791
And header authorization = 'Bearer ' + strToken
0
792
And request {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":'#(CountyName)',"city":'#(CityName)',"zipCode":"10011","country":"United States (US)","stateName":'#(CityName)',"countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""}
0
793
When method post
202
19:23:21.007 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/rep/save/13861 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 897 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":"New York","city":"New York","zipCode":"10011","country":"United States (US)","stateName":"New York","countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""} 19:23:21.208 response time in milliseconds: 201 1 < 200 1 < Content-Length: 4 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:18 GMT true
794
Then status 200
0
795
And def serverResponse = response
0
700
* call read('RenewalCommonMethods.feature@Fee_Check') {}
526
>>
karate.UseCases.RenewalCommonMethods
289
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
0
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
504
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
505
* def totalFees = licenseFees + fillingFees
0
506
And print totalFees
0
19:23:21.451 [print] 1060.0
507
And header Content-Type = 'application/json; charset=utf-8'
0
508
And header Accept = 'application/json; text/plain;*/*'
0
509
And header authorization = 'Bearer ' + strToken
0
510
And request {}
0
511
When method get
285
19:23:21.452 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13861 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:23:21.737 response time in milliseconds: 285 1 < 200 1 < Content-Length: 655 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:18 GMT [{"licenseName":"Restaurant - Beer","applicationId":"RE-22-106367-01","applicationTypeId":2,"appFeesId":0,"appId":13861,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":30.00,"totalFees":0.0,"filingFees":0.0,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
512
Then status 200
0
513
And def serverResponse = response
0
514
* def licTerm = serverResponse[0].term
0
515
* def licFees = serverResponse[0].licensingFees+''
0
516
* def licTermDesc = serverResponse[0].termDesc
0
517
* def licFeesRefId = serverResponse[0].feesRefId
0
519
* def licAncillaryFees = serverResponse[0].ancillaryFees+''
0
520
* def licfilingFees = serverResponse[0].filingFees+''
0
521
* def licInitialFees = serverResponse[0].initialFees
0
522
* def licRenewalFees = serverResponse[0].renewalFees
0
701
* match licRenewalFees == 30
0
702
* def totalFees = 960+30+0
5
703
And print totalFees
0
19:23:21.746 [print] 990.0
704
* call read('RenewalCommonMethods.feature@RenewalLicFillingFee1') {amount:10}
1925
>>
karate.UseCases.RenewalCommonMethods
1703
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
1
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
869
Given path '/internalapi/api/notification/SaveNotification'
0
871
And header Content-Type = 'application/json; charset=utf-8'
0
872
And header Accept = 'application/json; text/plain;*/*'
0
873
And header authorization = 'Bearer ' + strToken
0
874
And request {"applicant":{"communicationId":0,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19567,"email":"sbandi@svam.com","appId":'#(appId)',"emailContactTypeId":2,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}
0
875
When method post
170
19:23:21.964 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/notification/SaveNotification 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2020 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"applicant":{"communicationId":0,"email":"automation@svam.com","appId":13861,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19567,"email":"sbandi@svam.com","appId":13861,"emailContactTypeId":2,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13861,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13861,"createdBy":"Tarun Gupta"} 19:23:22.133 response time in milliseconds: 169 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:18 GMT 1 < Content-Length: 5 false
876
Then status 200
0
877
And print response
0
19:23:22.133 [print] false
880
Given path 'internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
881
And header Content-Type = 'application/json; charset=utf-8'
0
882
* def futureDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
893
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
902
* def date = getDate2()
0
903
* def futureDate = futureDateFunc()
1
904
And header Accept = 'application/json; text/plain;*/*'
0
905
And header authorization = 'Bearer ' + strToken
0
907
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":'#(totalFees)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":2,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":'#(renewalFees1)',"totalFees":'#(totalFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000,"term":'#(licTerm)',"termDesc":'#(licTermDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}],"isFromReturnedCheck":false,"isBondRequired":true,"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":0,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19581,"email":"sbandi@svam.com","appId":'#(appId)',"emailContactTypeId":2,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":0,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19581,"email":"sbandi@svam.com","appId":'#(appId)',"emailContactTypeId":2,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
0
908
When method post
240
19:23:22.135 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13861/false 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 5161 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13861,"slaintakeDate":"2022-11-15T19:23:22.134Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:23:22.134Z","amount":990}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"RE-22-106367-01","applicationTypeId":2,"appFeesId":0,"appId":13861,"feesRefId":6039,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"30","totalFees":990,"filingFees":"0","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":990,"amountReceived":"0.00","waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}],"isFromReturnedCheck":false,"isBondRequired":true,"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-11-22T19:23:21.960Z","emailNotificationDetail":{"applicant":{"communicationId":0,"email":"automation@svam.com","appId":13861,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19581,"email":"sbandi@svam.com","appId":13861,"emailContactTypeId":2,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13861,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13861,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":0,"email":"automation@svam.com","appId":13861,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19581,"email":"sbandi@svam.com","appId":13861,"emailContactTypeId":2,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13861,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13861,"createdBy":"Tarun Gupta"},"taskId":null} 19:23:22.374 response time in milliseconds: 239 2 < 200 2 < Content-Length: 4 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:53:19 GMT true
909
Then status 200
0
911
Given path 'internalapi/api/licensing/fees/check-payments/get/'+appId
0
912
And header authorization = 'Bearer ' + strToken
0
913
And request {}
0
914
When method get
205
19:23:22.375 request: 3 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/check-payments/get/13861 3 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 3 > Content-Type: application/json; charset=UTF-8 3 > Content-Length: 2 3 > Host: slaleapqaapi.svam.com 3 > Connection: Keep-Alive 3 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 3 > Accept-Encoding: gzip,deflate {} 19:23:22.579 response time in milliseconds: 204 3 < 200 3 < Content-Length: 441 3 < Content-Type: application/json; charset=utf-8 3 < Server: Microsoft-IIS/10.0 3 < Strict-Transport-Security: max-age=2592000 3 < X-Powered-By: ASP.NET 3 < Date: Tue, 15 Nov 2022 13:53:19 GMT [{"checkDetailId":2344,"appId":13861,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T00:00:00","slaintakeDate":"2022-11-15T00:00:00","amount":990.0000,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T08:53:19.687","modifiedBy":null,"modifiedDate":null}]
915
Then status 200
0
916
And def checkDetailId = response[0].checkDetailId
0
917
And print checkDetailId
0
19:23:22.580 [print] 2344
918
* def amount1 = response[0].amount
1
919
* def underpaidAmount = totalFees-amount
0
# ********* SAVE Application Details To Save *********************
921
Given path '/internalapi/api/licensing/app/save'
0
922
And header authorization = 'Bearer ' + strToken
0
923
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":'#(appId)',"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
1
924
When method post
330
19:23:22.587 request: 4 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 4 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 4 > Content-Type: application/json; charset=UTF-8 4 > Content-Length: 30720 4 > Host: slaleapqaapi.svam.com 4 > Connection: Keep-Alive 4 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 4 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13861,"formID":1167,"applicationID":"RE-22-106367-01","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":13861,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:23:22.913 response time in milliseconds: 326 4 < 200 4 < Content-Length: 49 4 < Content-Type: application/json; charset=utf-8 4 < Server: Microsoft-IIS/10.0 4 < Strict-Transport-Security: max-age=2592000 4 < X-Powered-By: ASP.NET 4 < Date: Tue, 15 Nov 2022 13:53:19 GMT {"appId":13861,"applicationId":"RE-22-106367-01"}
925
Then status 200
0
# ********* Save PAYMENT *********************
930
Given path '/internalapi/api/licensing/fees/details/save/'+appId +'/false'
0
931
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
942
* def slaDate = licFeesDate()
1
943
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
955
* def slaaDate = licDate()
0
956
* def licInitialFees1 = licInitialFees+''
0
957
And print licInitialFees1
0
19:23:22.915 [print] 0
958
* def renewalFees1 = renewalFees+''
0
959
And print renewalFees1
0
19:23:22.915 [print] 30
960
* def totalFees1 = totalFees+''
0
962
And print totalFees1
0
19:23:22.915 [print] 990
963
* def licAncillaryFees1 = licAncillaryFees+''
0
964
* def licfilingFees1 = licfilingFees+''
0
966
And header authorization = 'Bearer ' + strToken
0
967
And request {"checks":[{"checkDetailId":'#(checkDetailId)',"appId":'#(appId)',"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":'#(date)',"slaintakeDate":'#(date)',"amount":'#(totalFees1)',"appliedTo":null,"amountUsed":'#(amount)',"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":'#(date)',"modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":2,"appFeesId":'#(licFeesRefId)',"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":'#(renewalFees1)',"totalFees":'#(totalFees1)',"filingFees":'#(licfilingFees1)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(underpaidAmount)',"amountReceived":'#(amount)',"waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000,"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":'#(appId)',"checkDetailId":'#(checkDetailId)',"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":'#(amount)',"amount":0}],"lateFee":0,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}],"isBondRequired":false,"bondDetails":[{"bondDetailId":0,"bondNo":"1","appId":5874,"companyName":"ACSTAR INSURANCE COMPANY","address1":"","address2":"233 MAIN STREET ","city":"NEW BRITAIN ","state":"CT","zipCode":"","phone":"123","email":"","isActive":false,"createdBy":"","createdDate":null,"modifiedBy":"","modifiedDate":null,"amount":1000,"address":"P O BOX 2350 ","zip":"06050","emailAddress":"email@email.com","expirationDate":2090}],"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":true,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":0,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19581,"email":"sbandi@svam.com","appId":'#(appId)',"emailContactTypeId":2,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":true,"appId":'#(appId)',"createdBy":"Tarun Gupta","notificationTypeId":96}},"notificationDetails":{"applicant":{"communicationId":0,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19581,"email":"sbandi@svam.com","appId":'#(appId)',"emailContactTypeId":2,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":true,"appId":'#(appId)',"createdBy":"Tarun Gupta","notificationTypeId":96},"taskId":null}
0
968
When method post
264
19:23:22.916 request: 5 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13861/false 5 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 5 > Content-Type: application/json; charset=UTF-8 5 > Content-Length: 6007 5 > Host: slaleapqaapi.svam.com 5 > Connection: Keep-Alive 5 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 5 > Accept-Encoding: gzip,deflate {"checks":[{"checkDetailId":2344,"appId":13861,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T19:23:22.134Z","slaintakeDate":"2022-11-15T19:23:22.134Z","amount":"990","appliedTo":null,"amountUsed":10.0,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T19:23:22.134Z","modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"RE-22-106367-01","applicationTypeId":2,"appFeesId":6039,"appId":13861,"feesRefId":6039,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"30","totalFees":"990","filingFees":"0","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":980.0,"amountReceived":10.0,"waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":13861,"checkDetailId":2344,"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":10.0,"amount":0}],"lateFee":0,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}],"isBondRequired":false,"bondDetails":[{"bondDetailId":0,"bondNo":"1","appId":5874,"companyName":"ACSTAR INSURANCE COMPANY","address1":"","address2":"233 MAIN STREET ","city":"NEW BRITAIN ","state":"CT","zipCode":"","phone":"123","email":"","isActive":false,"createdBy":"","createdDate":null,"modifiedBy":"","modifiedDate":null,"amount":1000,"address":"P O BOX 2350 ","zip":"06050","emailAddress":"email@email.com","expirationDate":2090}],"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":true,"fundDueDate":"2022-11-22T19:23:21.960Z","emailNotificationDetail":{"applicant":{"communicationId":0,"email":"automation@svam.com","appId":13861,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19581,"email":"sbandi@svam.com","appId":13861,"emailContactTypeId":2,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13861,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":true,"appId":13861,"createdBy":"Tarun Gupta","notificationTypeId":96}},"notificationDetails":{"applicant":{"communicationId":0,"email":"automation@svam.com","appId":13861,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19581,"email":"sbandi@svam.com","appId":13861,"emailContactTypeId":2,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13861,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":true,"appId":13861,"createdBy":"Tarun Gupta","notificationTypeId":96},"taskId":null} 19:23:23.180 response time in milliseconds: 264 5 < 200 5 < Content-Type: application/json; charset=utf-8 5 < Server: Microsoft-IIS/10.0 5 < Strict-Transport-Security: max-age=2592000 5 < X-Powered-By: ASP.NET 5 < Date: Tue, 15 Nov 2022 13:53:19 GMT 5 < Content-Length: 4 true
969
Then status 200
0
970
And print response
0
19:23:23.180 [print] true
# ********* SAVE Application Details To Save *********************
975
Given path '/internalapi/api/licensing/app/save'
0
976
And header authorization = 'Bearer ' + strToken
0
977
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":'#(appId)',"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
1
978
When method post
267
19:23:23.185 request: 6 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 6 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 6 > Content-Type: application/json; charset=UTF-8 6 > Content-Length: 30720 6 > Host: slaleapqaapi.svam.com 6 > Connection: Keep-Alive 6 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 6 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13861,"formID":1167,"applicationID":"RE-22-106367-01","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":13861,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:23:23.448 response time in milliseconds: 263 6 < 200 6 < Content-Length: 49 6 < Content-Type: application/json; charset=utf-8 6 < Server: Microsoft-IIS/10.0 6 < Strict-Transport-Security: max-age=2592000 6 < X-Powered-By: ASP.NET 6 < Date: Tue, 15 Nov 2022 13:53:20 GMT {"appId":13861,"applicationId":"RE-22-106367-01"}
979
Then status 200
0
980
And def serverResponse = response
0
982
Given path '/internalapi/api/notification/SaveNotification'
0
984
And header Content-Type = 'application/json; charset=utf-8'
0
985
And header Accept = 'application/json; text/plain;*/*'
0
986
And header authorization = 'Bearer ' + strToken
0
987
And request {"applicant":{"communicationId":0,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19581,"email":"sbandi@svam.com","appId":'#(appId)',"emailContactTypeId":2,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":true,"appId":'#(appId)',"createdBy":"Tarun Gupta","notificationTypeId":96}
0
988
When method post
216
19:23:23.450 request: 7 > POST https://slaleapqaapi.svam.com/internalapi/api/notification/SaveNotification 7 > Content-Type: application/json; charset=utf-8 7 > Accept: application/json; text/plain;*/* 7 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 7 > Content-Length: 2043 7 > Host: slaleapqaapi.svam.com 7 > Connection: Keep-Alive 7 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 7 > Accept-Encoding: gzip,deflate {"applicant":{"communicationId":0,"email":"automation@svam.com","appId":13861,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19581,"email":"sbandi@svam.com","appId":13861,"emailContactTypeId":2,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13861,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":true,"appId":13861,"createdBy":"Tarun Gupta","notificationTypeId":96} 19:23:23.665 response time in milliseconds: 215 7 < 200 7 < Content-Length: 5 7 < Content-Type: application/json; charset=utf-8 7 < Server: Microsoft-IIS/10.0 7 < Strict-Transport-Security: max-age=2592000 7 < X-Powered-By: ASP.NET 7 < Date: Tue, 15 Nov 2022 13:53:20 GMT false
989
Then status 200
0
990
And print response
0
19:23:23.665 [print] false
707
* call read('RenewalCommonMethods.feature@PastDueDateCheck') {}
1011
>>
karate.UseCases.RenewalCommonMethods
446
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
1
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
1
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
1
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
1913
Given path '/internalapi/api/application/'+appId
0
1914
* def dbSts = db.cleanHeap()
240
1915
And header authorization = 'Bearer ' + strToken
0
1916
And header Content-Type = 'application/json; charset=utf-8'
0
1917
And header Accept = 'application/json; text/plain;*/*'
0
1918
And configure continueOnStepFailure = true
0
1919
And request {}
0
1920
When method get
201
19:23:24.475 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/13861 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:23:24.675 response time in milliseconds: 200 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:22 GMT 1 < Content-Length: 2257 {"applicationCategory":1,"appId":13861,"applicationId":"RE-22-106367-01","licePermitTypeId":null,"applicationTypeId":2,"formVersionId":1666,"formId":1167,"legalName":"Automation20221115192320Automation","submitDate":null,"isGISRequired":false,"licenseDescription":"Restaurant-Beer","recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":"New York","priority":"High","expirationDate":null,"appStatusId":1,"taskStatus":"Draft","taskId":0,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":true,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":"11/22/2022 12:00:00 AM","memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":false,"isNotQualified":false,"eventDate":null,"appStatus":{"appStatusId":1,"statusDescription":"Draft","isActive":true,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":null,"assignAppToLB":null,"licePermitType":{"licPermitTypeId":40,"type":"1","category":"1","product":"Beer","class":null,"description":null,"sectionOfLaw":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isTempPermit":false,"isELicensingPermit":false,"isAdditionalBar":false},"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":40,"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isCaseOpenSameAddress":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"clericalName":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"isFairOrFestival":false,"isShowEffExpDateOnLBReview":false,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":true,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":"2022-11-15T08:53:20.763"}
1921
* configure continueOnStepFailure = true
0
1922
Then status 200
0
1924
And def pastDueDate = response.pastDueDate
0
1925
And print pastDueDate
0
19:23:24.676 [print] 11/22/2022 12:00:00 AM
709
* call read('LicensesCommonMethods.feature@SubmitLicenseAndValidateLicStatus') {expStatus:'Awaiting Additional Funds'}
4553
>>
karate.UseCases.LicensesCommonMethods
4002
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Application SUBMIT *********************
1099
Given path '/internalapi/api/licensing/app/submit'
0
1100
And header authorization = 'Bearer ' + strToken
0
1101
And request {"appId":'#(appId)',"wfType":null}
0
1102
When method post
250
19:23:25.231 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/submit 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 29 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"appId":13861,"wfType":null} 19:23:25.480 response time in milliseconds: 249 1 < 200 1 < Content-Length: 121 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:22 GMT {"success":true,"submittedApps":[{"success":true,"taskId":0,"appId":13861,"applicationId":"RE-22-106367-01","error":""}]}
1103
Then status 200
0
1104
And def serverResponse = response
0
1105
And match response.success == true
0
1106
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
3748
>>
karate.UseCases.LicensesCommonMethods
3263
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
3101
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
159
19:23:29.064 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13861 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:23:29.223 response time in milliseconds: 159 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:53:26 GMT 1 < Content-Length: 222 {"applicationId":"RE-22-106367-01","submitDate":"2022-11-15T08:53:22.73","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Additional Funds"},"isLicenseApplication":true,"isPreFilled":true}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:23:29.224 [print] Awaiting Additional Funds
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
0
710
* def wait = waitFunc(70)
70021
712
* def typeOfNotification = 'Additional Funds Required'
0
713
* def subject = 'NYS Liquor Authority Licensing Bureau Record Information'
0
714
* def emailBodyData = 'RE: '+ApplicationId+' '+description+''
0
715
And print emailBodyData
0
19:24:39.258 [print] RE: RE-22-106367-01 Restaurant-Beer
716
* def emailBodyData2 = ''+legalName+''
0
717
* def emailBodyData3 = ''+Address1+''
0
718
* def emailBodyData4 = ''+Address2+''
0
719
* def emailBodyData5 = ''+CityName+', '+CityName+' '+zipCode+'-'+postalCode+''
3
720
* def emailBodyData6 = dateWithMonthsName
0
721
* def emailBodyData7 = 'Dear Applicant,'
0
722
* def emailBodyData8 = 'This will confirm receipt of your application. The fee you submitted with this application is incorrect and additional funds are required. An additional fee of $'+underpaidAmount+'.00 is required in order to continue processing your application. The additional fee requested must be received by our office NO LATER THAN '+mmyydateFundDueDate+'. Failure to respond may result in disapproval of the application.'
3
723
* def emailBodyData9 = 'Please mail a check with the additional monies to:'
0
724
* def emailBodyData10 = 'NYS Liquor Authority'
0
725
* def emailBodyData11 = 'Attention: Licensing'
0
726
* def emailBodyData12 = '80 S Swan St'
0
727
* def emailBodyData13 = 'Suite 900'
0
728
* def emailBodyData14 = 'Albany, NY12210'
0
729
* def emailBodyData15 = 'Include a copy of this correspondence with your fee submission.'
0
730
* def emailBodyData16 = 'Sincerely yours,'
0
731
* def emailBodyData17 = 'New York State Liquor Authority - Licensing Bureau'
0
733
* call read('LicensesCommonMethods.feature@ValidateEmailCommunicationQueue') {}
2218
>>
karate.UseCases.LicensesCommonMethods
1581
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
3417
Given path '/internalapi/api/Communication/GetEmailCommQueue/Application/'+appId
0
3419
And header authorization = 'Bearer ' + strToken
0
3420
And header Content-Type = 'application/json; charset=utf-8'
0
3421
And header Accept = 'application/json; text/plain;*/*'
0
3422
And header user-agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36'
0
3423
And request ""
0
3424
When method get
1573
19:24:39.902 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/Communication/GetEmailCommQueue/Application/13861 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36 1 > Content-Length: 0 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > Accept-Encoding: gzip,deflate 19:24:41.473 response time in milliseconds: 1571 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:54:38 GMT 1 < Content-Length: 1587 [{"event":"application","acaId":13861,"notificationId":10978,"typeOfNotification":"Additional Funds Required","emailTo":"automation@svam.com","subject":"NYS Liquor Authority Licensing Bureau Record Information","emailBody":"RE: RE-22-106367-01 Restaurant-Beer\r<br/> Automation20221115192320Automation\r<br/> \r<br/> Address1<br/>Address2<br/>New York, New York 12345-1234 \r<br/> \r<br/>\r<br/>November 15, 2022\r<br/>\r<br/>Dear Applicant, \r<br/>\r<br/>This will confirm receipt of your application. The fee you submitted with this application is incorrect and additional funds are required. An additional fee of $980.00 is required in order to continue processing your application. The additional fee requested must be received by our office NO LATER THAN 11/22/2022. Failure to respond may result in disapproval of the application. \r<br/>\r<br/>Please mail a check with the additional monies to: \r<br/>NYS Liquor Authority \r<br/>Attention: Licensing \r<br/>80 S Swan St\r<br/>Suite 900\r<br/>Albany, NY12210\r<br/>\r<br/>Include a copy of this correspondence with your fee submission.\r<br/>\r<br/>\r<br/>Sincerely yours,\r<br/>\r<br/>New York State Liquor Authority - Licensing Bureau","notificationDate":"2022-11-15T08:53:20.993","attachments":[],"status":"Sent","acaNotificationId":13426,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":"2022-11-15T08:53:20.993","modifiedBy":null,"wfRoleId":0,"modifiedDate":null}]
3425
Then status 200
0
3427
And def serverResponse = response
0
3429
* def serverResponseNotificationData = karate.jsonPath(serverResponse, "$[?(@.typeOfNotification == '" + typeOfNotification + "')]")
2
3430
And print serverResponseNotificationData
3
19:24:41.477 [print] [ { "event": "application", "acaId": 13861, "notificationId": 10978, "typeOfNotification": "Additional Funds Required", "emailTo": "automation@svam.com", "subject": "NYS Liquor Authority Licensing Bureau Record Information", "emailBody": "RE: RE-22-106367-01 Restaurant-Beer\r<br/> Automation20221115192320Automation\r<br/> \r<br/> Address1<br/>Address2<br/>New York, New York 12345-1234 \r<br/> \r<br/>\r<br/>November 15, 2022\r<br/>\r<br/>Dear Applicant, \r<br/>\r<br/>This will confirm receipt of your application. The fee you submitted with this application is incorrect and additional funds are required. An additional fee of $980.00 is required in order to continue processing your application. The additional fee requested must be received by our office NO LATER THAN 11/22/2022. Failure to respond may result in disapproval of the application. \r<br/>\r<br/>Please mail a check with the additional monies to: \r<br/>NYS Liquor Authority \r<br/>Attention: Licensing \r<br/>80 S Swan St\r<br/>Suite 900\r<br/>Albany, NY12210\r<br/>\r<br/>Include a copy of this correspondence with your fee submission.\r<br/>\r<br/>\r<br/>Sincerely yours,\r<br/>\r<br/>New York State Liquor Authority - Licensing Bureau", "notificationDate": "2022-11-15T08:53:20.993", "attachments": [ ], "status": "Sent", "acaNotificationId": 13426, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskId": null, "taskRoleId": 0, "taskDecision": null, "isActive": null, "createdBy": null, "createdDate": "2022-11-15T08:53:20.993", "modifiedBy": null, "wfRoleId": 0, "modifiedDate": null } ]
3431
* match serverResponseNotificationData[0].status == 'Sent'
0
3432
* match serverResponseNotificationData[0].emailTo != []
0
3433
* match serverResponseNotificationData[0].subject == subject
0
3434
* match serverResponseNotificationData[0].emailBody contains emailBodyData
0
734
* match serverResponseNotificationData[0].emailBody contains emailBodyData2
0
735
* match serverResponseNotificationData[0].emailBody contains emailBodyData3
0
736
* match serverResponseNotificationData[0].emailBody contains emailBodyData4
0
737
* match serverResponseNotificationData[0].emailBody contains emailBodyData5
0
738
* match serverResponseNotificationData[0].emailBody contains emailBodyData6
0
739
* match serverResponseNotificationData[0].emailBody contains emailBodyData7
0
740
* match serverResponseNotificationData[0].emailBody contains emailBodyData8
0
741
* match serverResponseNotificationData[0].emailBody contains emailBodyData9
0
742
* match serverResponseNotificationData[0].emailBody contains emailBodyData10
0
743
* match serverResponseNotificationData[0].emailBody contains emailBodyData11
0
744
* match serverResponseNotificationData[0].emailBody contains emailBodyData12
0
745
* match serverResponseNotificationData[0].emailBody contains emailBodyData13
0
746
* match serverResponseNotificationData[0].emailBody contains emailBodyData14
0
747
* match serverResponseNotificationData[0].emailBody contains emailBodyData15
0
748
* match serverResponseNotificationData[0].emailBody contains emailBodyData16
0
749
* match serverResponseNotificationData[0].emailBody contains emailBodyData17
0
Scenario: [7.1:845] TC016_SLA_REN_Intake_Fees_Over_Payment
ms: 55940
>>
Background:
3
* url BaseURL
0
19:24:41.573 karate.env system property was: svamqa
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* callonce read('LoginDetails.feature') { strToken:'#(strToken)'}
34
8
* def amendmentTypeId = 1
0
9
* def waitFunc =
0
function(timeinMiliSeconds) { // load java type into js engine var Thread = Java.type('java.lang.Thread'); Thread.sleep(timeinMiliSeconds*1000); }
17
* def DueDate =
0
function(numberOfDays){ var date = new Date(); date.setDate(date.getDate() + (numberOfDays)); return date.toString() }
25
* def DueDateCheck = DueDate(7)
0
27
* def getcorporateStructureCodeFunc =
0
function(value){ if (value === 'Individual'){ return 1; } else { return 2; } }
38
* def getStatusIndOrgStatus =
0
function(value){ if (value === 'Individual'){ return true; } else { return false; } }
49
* def getIndORgCodeFunc =
0
function(value1, value2){ if (value1 == 1 && value2 == 'Individual'){ return 1; } else if (value1 == 1 && value2 == 'Sole Propretior'){ return 2; } else if (value1 == 2 && value2 == 'Individual'){ return 1; } else if (value1 == 2 && value2 == 'Limited Liability Company'){ return 2; }else if (value1 == 2 && value2 == 'Corporation'){ return 3; }else if (value1 == 2 && value2 == 'Limited Liability Partnership'){ return 4; }else if (value1 == 2 && value2 == 'Limited Partnership'){ return 5; }else if (value1 == 2 && value2 == 'Partnership'){ return 6; }else if (value1 == 2 && value2 == 'Government'){ return 7; }else if (value1 == 2 && value2 == 'Sole Propretior'){ return 8; }else if (value1 == 2 && value2 == 'Trust'){ return 9; }else if (value1 == 2 && value2 == 'Estate'){ return 10; } else { return 1; } }
87
* def getFundDueDateMMYYDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
99
* def mmyydateFundDueDate = getFundDueDateMMYYDate(7)
1
100
And print mmyydateFundDueDate
0
19:24:41.609 [print] 11/22/2022
102
* def getAmendmentTypeIdFunc =
0
function(amendmentType){ if (amendmentType == 'ABC Officer'){ return 1; } else if (amendmentType == 'Additional Bar'){ return 2; } else if (amendmentType == 'Alteration'){ return 3; } else if (amendmentType == 'Alteration with Additional Bar'){ return 3; } }
121
* def waitFunc =
0
function(timeinMiliSeconds) { // load java type into js engine var Thread = Java.type('java.lang.Thread'); Thread.sleep(timeinMiliSeconds*1000); }
129
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
140
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
151
* def getMMMMDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MMMM dd, yyyy"); var date = new java.util.Date(); return sdf.format(date); }
161
* def mmmmdate = getMMMMDate()
0
163
* def getMMYYDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); return sdf.format(date); }
173
* def mmyydate = getMMYYDate()
0
175
* def getFundDueDateMMYYDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
187
* def mmyydateFundDueDate = getFundDueDateMMYYDate(7)
0
189
* def dateFnc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date( date.getTime() - java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
199
* def dateWithMonthsNameFnc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MMMM dd, yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date( date.getTime()); return sdf.format(dayAfter); }
208
* def dateWithMonthsName = dateWithMonthsNameFnc()
0
209
And print dateWithMonthsName
0
19:24:41.610 [print] November 15, 2022
763
* def IndOrgSelectionDropDown = 'Individual'
0
764
* def indOrgCode = getIndORgCodeFunc(IndOrgSelectionDropDown)
0
765
And print indOrgCode
0
19:24:41.611 [print] 1
766
* def isIndStatus = getStatusIndOrgStatus(IndOrgSelectionDropDown)
0
767
* def CorporateStructureDropDown = 'Individual'
0
768
* def CorporateStructureDropDownCode = getIndORgCodeFunc(indOrgCode,CorporateStructureDropDown)
0
769
And print CorporateStructureDropDownCode
0
19:24:41.611 [print] 1
770
* def firstName = 'Automation'
0
771
* def lastName = 'Automation'
0
772
* def legalName = firstName+ ' '+lastName
0
773
* def Address1 = 'Address1'
0
774
* def Address2 = 'Address2'
0
775
* def CityName = 'New York'
0
776
* def zipCode = '12345'
0
777
* def postalCode = '1234'
0
778
* def countryName = 'United States (US)'
0
779
* def emailId = 'automation@svam.com'
0
780
* def convictedOfCrime = '1'
0
781
* def percentageOfOwners = '20'
0
782
* def isFingerprintRequired = true
0
783
* def isFingerprintsApproved = true
0
784
* def isSignature = true
0
786
* def convictedOfCrime = '1'
0
787
* def PhoneNumber = '999-999-9999'
0
788
* def PhoneExtn = 1234
0
789
* def countryCode = '+91'
0
790
* def stateCode = 40
0
792
* def mainLicensePermitTypeId = 40
0
793
* def termInYears = 3
0
794
* def termDesc = 3+' Year (s)'
0
795
* def licenseFees = 960
0
796
* def fillingFees = 100
0
797
* def licAncillaryFees = 0
0
798
* def renewalFees = 30+''
0
799
* string productName = 'RestaurantBeer'+''
0
801
* def CountyId = 1
0
802
* def CountyName = 'New York'
0
803
* def totalFees = licenseFees+fillingFees+licAncillaryFees
0
804
* def amountPaid = totalFees+''
0
805
* def splittedCityName = CityName.replaceAll(" ","")
1
807
* call read('LicensesCommonMethods.feature@IntakeLicensewithoutAssociatedLic') {}
2746
>>
karate.UseCases.LicensesCommonMethods
2191
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
0
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* App Intake *********************
290
* call read('LicensesCommonMethods.feature@GetCountyList') {}
1407
>>
karate.UseCases.LicensesCommonMethods
758
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
117
Given path '/internalapi/api/reference'
0
118
* def dbSts = db.cleanHeap()
598
119
And header authorization = 'Bearer ' + strToken
0
120
And header Content-Type = 'application/json;charset=utf-8'
0
121
And header Accept = 'text/plain'
0
# * def query = {name:countyzone&onlyActives:true}
123
And params {name:countyzone,onlyActives:true}
1
#And param onlyActives='true'
125
And request {}
0
126
When method get
157
19:24:43.359 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/reference?name=countyzone&onlyActives=true 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json;charset=utf-8 1 > Accept: text/plain 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:24:43.515 response time in milliseconds: 155 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:54:40 GMT 1 < Content-Length: 11712 {"values":[{"CountyId":1,"County":"New York","ShortName":"NEW","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T00:00:00","ModifiedBy":"esandoval","ModifiedDate":"2020-11-10T11:30:56.047"},{"CountyId":2,"County":"Kings","ShortName":"KING","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":3,"County":"Bronx","ShortName":"BRON","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":4,"County":"Queens","ShortName":"QUEE","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":5,"County":"Richmond","ShortName":"RICH","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":6,"County":"Nassau","ShortName":"NASS","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":7,"County":"Suffolk","ShortName":"SUFF","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":8,"County":"Westchester","ShortName":"WEST","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":9,"County":"Orange","ShortName":"ORAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":10,"County":"Putnam","ShortName":"PUTN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":11,"County":"Rockland","ShortName":"ROCK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":12,"County":"Albany","ShortName":"ALBA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":13,"County":"Clinton","ShortName":"CLIN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":14,"County":"Columbia","ShortName":"COLU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":15,"County":"Dutchess","ShortName":"DUTC","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":16,"County":"Essex","ShortName":"ESSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":17,"County":"Franklin","ShortName":"FRAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":18,"County":"Fulton","ShortName":"FULT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":19,"County":"Greene","ShortName":"GREE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":20,"County":"Hamilton","ShortName":"HAMI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":21,"County":"Montgomery","ShortName":"MONT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":22,"County":"Rensselaer","ShortName":"RENS","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":23,"County":"Saratoga","ShortName":"SARA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":24,"County":"Schenectady","ShortName":"SCHE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":25,"County":"Schoharie","ShortName":"SCHO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":26,"County":"Sullivan","ShortName":"SULL","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":27,"County":"Ulster","ShortName":"ULST","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":28,"County":"Warren","ShortName":"WARR","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":29,"County":"Washington","ShortName":"WASH","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":30,"County":"Allegany","ShortName":"ALLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":31,"County":"Cattaraugus","ShortName":"CATT","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":32,"County":"Chautauqua","ShortName":"CHAU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":33,"County":"Chemung","ShortName":"CHEM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":34,"County":"Erie","ShortName":"ERIE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":35,"County":"Genesee","ShortName":"GENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":36,"County":"Livingston","ShortName":"LIVI","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":37,"County":"Monroe","ShortName":"MONR","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":38,"County":"Niagara","ShortName":"NIAG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":39,"County":"Ontario","ShortName":"ONTA","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":40,"County":"Orleans","ShortName":"ORLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":41,"County":"Schuyler","ShortName":"SCHU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":42,"County":"Seneca","ShortName":"SENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":43,"County":"Steuben","ShortName":"STEU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":44,"County":"Wayne","ShortName":"WAYN","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":45,"County":"Wyoming","ShortName":"WYOM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":46,"County":"Yates","ShortName":"YATE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":47,"County":"Broome","ShortName":"BROO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":48,"County":"Chenango","ShortName":"CHEN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":49,"County":"Cortland","ShortName":"CORT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":50,"County":"Delaware","ShortName":"DELA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":51,"County":"Herkimer","ShortName":"HERK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":52,"County":"Jefferson","ShortName":"JEFF","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":53,"County":"Lewis","ShortName":"LEWI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":54,"County":"Madison","ShortName":"MADI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":55,"County":"Oneida","ShortName":"ONEI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":56,"County":"Onondaga","ShortName":"ONON","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":57,"County":"Oswego","ShortName":"OSWE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":58,"County":"Otsego","ShortName":"OTSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":59,"County":"St. Lawrence","ShortName":"ST L","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":60,"County":"Cayuga","ShortName":"CAYU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":61,"County":"Tioga","ShortName":"TIOG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":62,"County":"Tompkins","ShortName":"TOMP","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.6","ModifiedBy":null,"ModifiedDate":null}],"name":"countyzone","schema":[{"columnName":"CountyId","dataType":"int","maxLenght":null,"isRequired":true},{"columnName":"County","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ShortName","dataType":"nvarchar","maxLenght":10,"isRequired":false},{"columnName":"ZoneNo","dataType":"int","maxLenght":null,"isRequired":false},{"columnName":"IsActive","dataType":"bit","maxLenght":null,"isRequired":false},{"columnName":"CreatedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"CreatedDate","dataType":"datetime","maxLenght":null,"isRequired":false},{"columnName":"ModifiedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ModifiedDate","dataType":"datetime","maxLenght":null,"isRequired":false}]}
127
* configure continueOnStepFailure = true
0
128
Then status 200
0
129
And def values = response.values
0
130
* configure continueOnStepFailure = true
0
291
* def countyData = karate.jsonPath(values, "$[?(@.CountyId == '" + CountyId + "')]")
0
292
* def countyZone = countyData[0].ZoneNo
0
293
And print countyZone
0
19:24:43.545 [print] 1
294
Given path '/internalapi/api/licensing/selectapptype/savenewlicenseapp'
0
295
* def dbSts = db.cleanHeap()
228
296
And header authorization = 'Bearer ' + strToken
0
297
And header Content-Type = 'application/json; charset=utf-8'
0
298
And header Accept = 'application/json; text/plain;*/*'
0
#* def CountysId = <countyIds>
# And print CountysId
#* string CountysName = <countynames>
# And print CountysName
#* def mainLicensePermitTypeId = <LicensePermitTypeId>
# And print mainLicensePermitTypeId
#* string ProductType = <ProductTypes>
#* string LicenseDescription = <LicDescription>
# And print ProductType
309
And request {"mainLicensePermitTypeId":'#(mainLicensePermitTypeId)',"newPermitTypeIds":[],"combinedCraftId":null,"masterFileId":null,"isApplicableForTempPermit":false,"isNotQualified":false,"isChainRestaurant":false,"addBarList":[],"countyId":'#(CountyId)',"isApplicantCurrentLicensed":false,"isExistingManufacturer":false,"selectedLicense":null,"isAssociatedTempPermit":false}
0
311
When method post
161
19:24:43.774 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/selectapptype/savenewlicenseapp 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 327 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"mainLicensePermitTypeId":40,"newPermitTypeIds":[],"combinedCraftId":null,"masterFileId":null,"isApplicableForTempPermit":false,"isNotQualified":false,"isChainRestaurant":false,"addBarList":[],"countyId":1,"isApplicantCurrentLicensed":false,"isExistingManufacturer":false,"selectedLicense":null,"isAssociatedTempPermit":false} 19:24:43.934 response time in milliseconds: 160 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:54:40 GMT 1 < Content-Length: 234 [{"childAppId":null,"mainApplicationId":"NA-0111-22-119057","childApplicationId":null,"licensePermitTypeId":40,"description":"Restaurant-Beer","parentApplicationId":"NA-0111-22-119057","parentAppId":13862,"appId":13862,"formId":1165}]
312
* configure continueOnStepFailure = true
0
313
Then status 200
0
315
And def ApplicationId = response[0].mainApplicationId
0
316
And print ApplicationId
0
19:24:43.935 [print] NA-0111-22-119057
317
And match ApplicationId contains 'NA-'
0
319
* def currentYear = '-'+getYearFunc()+'-'+countyZone
1
320
And match ApplicationId contains currentYear
0
321
And def description = response[0].description
0
323
And def appId = response[0].appId
0
325
* def formId = response[0].formId
0
326
* def FormVersionId = response[0].FormVersionId
0
328
Given path '/internalapi/api/application/preview/'+appId
0
329
* def dbSts = db.cleanHeap()
206
330
And header authorization = 'Bearer ' + strToken
0
331
And header Content-Type = 'application/json; charset=utf-8'
0
332
And header Accept = 'application/json; text/plain;*/*'
0
333
And configure continueOnStepFailure = true
0
334
And request {}
0
335
When method get
183
19:24:44.144 request: 2 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13862 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > Content-Length: 2 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {} 19:24:44.326 response time in milliseconds: 182 2 < 200 2 < Content-Length: 185 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:54:40 GMT {"applicationId":"NA-0111-22-119057","submitDate":null,"licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Draft"},"isLicenseApplication":true,"isPreFilled":false}
336
* configure continueOnStepFailure = true
0
337
Then status 200
0
338
And def licStatus = response.appStatus.statusDescription
0
339
And print licStatus
0
19:24:44.327 [print] Draft
340
And match licStatus == 'Draft'
0
808
* def CountyName = "New York"
0
809
* call read('LicensesCommonMethods.feature@FillAndSaveApplicantInformationPage') {county:'#(CountyName)'}
822
>>
karate.UseCases.LicensesCommonMethods
179
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
700
* def getDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
709
Given path '/internalapi/api/licensing/app/static/applicantinfo/save/'+appId
0
710
And header Content-Type = 'application/json; charset=utf-8'
0
712
* def autoFirstName = firstName + getDate()
0
713
* def legalName = autoFirstName + lastName
0
714
And header Accept = 'application/json; text/plain;*/*'
0
715
And header authorization = 'Bearer ' + strToken
0
716
And request {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":'#(indOrgCode)',"corporateStructure":'#(CorporateStructureDropDownCode)',"firstName":'#(autoFirstName)',"lastName":'#(lastName)',"middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":'#(legalName)',"id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":'#(IndOrgSelectionDropDown)',"corporateStructureText":'#(CorporateStructureDropDown)',"isIndividual":'#(isIndStatus)'},"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"2","phoneTypeText":"Office","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}}
0
717
When method post
176
19:24:44.993 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/applicantinfo/save/13862 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2167 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":1,"corporateStructure":1,"firstName":"Automation20221115192444","lastName":"Automation","middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":"Automation20221115192444Automation","id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":"Individual","corporateStructureText":"Individual","isIndividual":true},"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"2","phoneTypeText":"Office","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}} 19:24:45.167 response time in milliseconds: 174 1 < 200 1 < Content-Length: 2191 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:54:42 GMT {"businessInfo":{"id":0,"website":null,"isLicensed":false,"isAssociated":false,"businessEntity":{"id":3990,"individualOrganization":"1","corporateStructure":1,"isEmployeeForSoleProprietor":null,"firstName":"Automation20221115192444","lastName":"Automation","middleName":"AutoMidName","ssn":"","fein":"","legalName":"Automation20221115192444Automation","suffix":"1","corporateStructureText":"Individual","individualOrganizationText":"Individual","isIndividual":true},"address":{"addressId":29342,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"US","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"NY","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25254,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":7794,"phoneType":3,"countryCode":"91","phone":"999-999-9999","phoneExtension":"1234"}]}},"premisesInfo":{"id":13162,"dba":null,"countyId":1,"countyName":"New York","isDbaSearched":null,"isPremisesRequired":true,"licensePermitID":"","address":{"addressId":29343,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"US","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"NY","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25255,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":7795,"phoneType":2,"countryCode":"+91","phone":"999-999-9999","phoneExtension":"1234"}]}},"applicantDetail":{"id":9754,"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"isPhysicalChange":null,"applicantStatement":{"id":4295,"nameOfApplicant":null,"title":null,"signature":null,"date":null}}}
718
Then status 200
0
810
* call read('LicensesCommonMethods.feature@FillAndSavePrincipalPage') {}
627
>>
karate.UseCases.LicensesCommonMethods
189
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
745
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
754
Given path '/internalapi/api/licensing/app/static/principal/save/'+appId
0
755
And header Content-Type = 'application/json; charset=utf-8'
0
756
* def prncipalName = firstName + getDate1()
0
757
* def dt = licDate()
0
758
And header Accept = 'application/json; text/plain;*/*'
0
759
And header authorization = 'Bearer ' + strToken
0
760
And request {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":'#(convictedOfCrime)',"percentageOfOwners":'#(percentageOfOwners)',"isFingerprintRequired":'#(isFingerprintRequired)',"isFingerprintsApproved":'#(isFingerprintsApproved)',"title":"15","numberOfShares":"","isSignature":false,"date":'#(dt)',"address":{"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"stateId":'#(stateCode)',"county":'#(CountyName)',"city":"New York","zipCode":'#(zipCode)',"zip4":'#(postalCode)',"country":'#(countryName)',"stateName":'#(CityName)',"countryId":229,"zip":'#(zipCode)'},"person":{"personId":0,"firstName":'#(prncipalName)',"middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":'#(dt)',"age":"","choosedEntity":null,"ssnFormat":"","suffixText":"JR"},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":'#(emailId)',"confirmEmail":'#(emailId)'},"titleText":"Vice President","convictedOfCrimeText":"No","disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
0
# {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":"" ,"percentageOfOwners":"" ,"isFingerprintRequired":true ,"isFingerprintsApproved":true ,"title":"","dcjsFingerPrintStatus":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"","addressLine2":"","stateId":40,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"New York","countryId":229,"zip":""},"person":{"personId":0,"firstName":"XA","middleName":"","lastName":"sa","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":null,"confirmEmail":null},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
762
When method post
187
19:24:45.604 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/save/13862 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 1107 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":"1","percentageOfOwners":"20","isFingerprintRequired":true,"isFingerprintsApproved":true,"title":"15","numberOfShares":"","isSignature":false,"date":"2022-11-15T19:24:45.603Z","address":{"addressLine1":"Address1","addressLine2":"Address2","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation20221115192445","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T19:24:45.603Z","age":"","choosedEntity":null,"ssnFormat":"","suffixText":"JR"},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":"automation@svam.com","confirmEmail":"automation@svam.com"},"titleText":"Vice President","convictedOfCrimeText":"No","disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]} 19:24:45.790 response time in milliseconds: 186 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:54:42 GMT 1 < Content-Length: 1390 {"entities":[],"principals":[{"principalId":3285,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":true,"isFingerprintsApproved":true,"percentageOfOwners":20.0,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","entities":null,"numberOfShares":"","isSignature":false,"isRemove":false,"date":"2022-11-15T00:00:00","convictedOfCrime":"1","title":"15","isLicensed":false,"isAssociated":false,"person":{"personId":5577,"firstName":"Automation20221115192445","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T00:00:00","serialNo":0,"age":0,"choosedEntity":[]},"address":{"addressId":29344,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25256,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
763
Then status 200
0
811
* call read('LicensesCommonMethods.feature@FillAndSaveRepresentativePage') {}
640
>>
karate.UseCases.LicensesCommonMethods
157
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Representative *********************
790
Given path '/internalapi/api/licensing/app/static/rep/save/'+appId
0
791
And header authorization = 'Bearer ' + strToken
0
792
And request {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":'#(CountyName)',"city":'#(CityName)',"zipCode":"10011","country":"United States (US)","stateName":'#(CityName)',"countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""}
0
793
When method post
155
19:24:46.288 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/rep/save/13862 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 897 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":"New York","city":"New York","zipCode":"10011","country":"United States (US)","stateName":"New York","countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""} 19:24:46.442 response time in milliseconds: 154 1 < 200 1 < Content-Length: 4 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:54:43 GMT true
794
Then status 200
0
795
And def serverResponse = response
0
812
* call read('LicensesCommonMethods.feature@FillAndSaveMethodOfOperationPage') {}
5439
>>
karate.UseCases.LicensesCommonMethods
189
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
6389
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
6398
Given path '/internalapi/api/licensing/app/save'
0
6399
And header Content-Type = 'application/json; charset=utf-8'
0
6400
* def prncipalName = firstName + getDate1()
0
6401
* def dt = licDate()
0
6402
And header Accept = 'application/json; text/plain;*/*'
0
6403
And header authorization = 'Bearer ' + strToken
0
6404
And request {"isApproved":false,"appId":'#(appId)',"formID":1165,"applicationID":"","formName":"","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":1,"formCategory":{},"formCategoryId":1,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and Policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1993,"key":"","label":"Will the business employ a manager?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1994,"key":"","label":"If no, will the principals manage?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1995,"key":"","label":"If Premises is not a caterer establishment, will the premises periodically close to host private events?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1996,"key":"","label":"If Yes, How Frequently?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"Yes","fieldID":1997,"key":"","label":"Will the premises have music?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1998,"key":"","label":"If Live Music, Give Details","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1999,"key":"","label":"Will the premises use the service of an event promoter?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2000,"key":"","label":"Will the Premises Permit Dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2001,"key":"","label":"Will there be exotic dancing, including but not limited to topless entertainment, pole dancing and or lap dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2002,"key":"","label":"Will there be topless entertainment?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":16,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2003,"key":"","label":"Will Security Personnel be used at the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":17,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2004,"key":"","label":"How many?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":18,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2005,"key":"","label":"Provide your proprietary security guard employer unique Identification number assigned to the business by the NYS Department of State Division of Licensing Services or the name of the security company through which the security personnel will be hired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":19,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2006,"key":"","label":"Provide a detailed plan of supervision for the premises to be licensed. Clearly describe how you will maintain control and order over the licensed premises. How will you monitor alcohol sales and prevent sales to minors and sales to intoxicated persons? How will you handle unruly patrons, altercations, etc., to prevent the premises from becoming disorderly?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":20,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2007,"key":"","label":"Are all responses provided in the application consistent with the information provided to the municipality or community board within the standardized notice form for providing thirty day advance notice","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":21,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2008,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":22,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"4","fieldID":2051,"key":"","label":"If Yes, check all that apply","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2052,"key":"","label":"Who will be permitted to dance?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"Method_of_Operation","key":"0","label":"Method Of Operation","order":11,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isStatic":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"parentSection":"","subSections":[],"sectionFieldOrders":[],"address":{"addressLine1":"","addressLine2":"","stateId":null,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"","countryId":229}}],"formVersionId":1699,"version":25,"licenseDescription":"Restaurant-Beer","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"showAbcOfficer":false,"showCorpChange":false,"showEndorsement":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant_Information","Principal","Representative","Landlord_Identification","Personal_Questionnaire"],"showPQ":true,"showCC":false,"showManuOnPrem":false,"licPermitTypeId":40,"tabVisitied":{"Applicant Information":false,"Principal":false,"Representative":false,"Landlord Identification":false,"Personal Questionnaire":false}}
1
6406
When method post
184
19:24:51.701 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 12993 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13862,"formID":1165,"applicationID":"","formName":"","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":1,"formCategory":{},"formCategoryId":1,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and Policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1993,"key":"","label":"Will the business employ a manager?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1994,"key":"","label":"If no, will the principals manage?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1995,"key":"","label":"If Premises is not a caterer establishment, will the premises periodically close to host private events?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1996,"key":"","label":"If Yes, How Frequently?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"Yes","fieldID":1997,"key":"","label":"Will the premises have music?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1998,"key":"","label":"If Live Music, Give Details","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1999,"key":"","label":"Will the premises use the service of an event promoter?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2000,"key":"","label":"Will the Premises Permit Dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2001,"key":"","label":"Will there be exotic dancing, including but not limited to topless entertainment, pole dancing and or lap dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2002,"key":"","label":"Will there be topless entertainment?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":16,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2003,"key":"","label":"Will Security Personnel be used at the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":17,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2004,"key":"","label":"How many?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":18,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2005,"key":"","label":"Provide your proprietary security guard employer unique Identification number assigned to the business by the NYS Department of State Division of Licensing Services or the name of the security company through which the security personnel will be hired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":19,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2006,"key":"","label":"Provide a detailed plan of supervision for the premises to be licensed. Clearly describe how you will maintain control and order over the licensed premises. How will you monitor alcohol sales and prevent sales to minors and sales to intoxicated persons? How will you handle unruly patrons, altercations, etc., to prevent the premises from becoming disorderly?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":20,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2007,"key":"","label":"Are all responses provided in the application consistent with the information provided to the municipality or community board within the standardized notice form for providing thirty day advance notice","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":21,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2008,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":22,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"4","fieldID":2051,"key":"","label":"If Yes, check all that apply","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2052,"key":"","label":"Who will be permitted to dance?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"Method_of_Operation","key":"0","label":"Method Of Operation","order":11,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isStatic":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"parentSection":"","subSections":[],"sectionFieldOrders":[],"address":{"addressLine1":"","addressLine2":"","stateId":null,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"","countryId":229}}],"formVersionId":1699,"version":25,"licenseDescription":"Restaurant-Beer","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"showAbcOfficer":false,"showCorpChange":false,"showEndorsement":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant_Information","Principal","Representative","Landlord_Identification","Personal_Questionnaire"],"showPQ":true,"showCC":false,"showManuOnPrem":false,"licPermitTypeId":40,"tabVisitied":{"Applicant Information":false,"Principal":false,"Representative":false,"Landlord Identification":false,"Personal Questionnaire":false}} 19:24:51.880 response time in milliseconds: 179 1 < 200 1 < Content-Length: 51 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:54:49 GMT {"appId":13862,"applicationId":"NA-0111-22-119057"}
6407
Then status 200
0
813
* call read('LicensesCommonMethods.feature@FeesValidation') {amount:'#(totalFees)'}
5579
>>
karate.UseCases.LicensesCommonMethods
2581
3
* url BaseURL
1
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
1
5
* def DbUtils = Java.type('utils.DbUtils')
3
6
* def db = new DbUtils(config)
3
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
16
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
8
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
810
* def futureDateFunc =
6
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
820
* def futureDate = futureDateFunc()
11
822
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
832
* def date = getDate2()
3
834
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
4
835
And header Content-Type = 'application/json; charset=utf-8'
0
836
And header Accept = 'application/json; text/plain;*/*'
0
837
And header authorization = 'Bearer ' + strToken
0
838
And request {}
0
839
When method get
273
19:24:54.941 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13862 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:24:55.189 response time in milliseconds: 247 1 < 200 1 < Content-Length: 658 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:54:52 GMT [{"licenseName":"Restaurant - Beer","applicationId":"NA-0111-22-119057","applicationTypeId":1,"appFeesId":0,"appId":13862,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":0.0,"totalFees":0.0,"filingFees":100.00,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
840
Then status 200
0
841
And def serverResponse = response
0
842
* def licTerm = serverResponse[0].term
2
843
* def licFees = serverResponse[0].licensingFees+''
2
844
* def licTermDesc = serverResponse[0].termDesc
0
845
* def licFeesRefId = serverResponse[0].feesRefId
0
846
* def licAncillaryFees = serverResponse[0].ancillaryFees+''
2
847
* def licfilingFees = serverResponse[0].filingFees+''
0
848
* def licInitialFees = serverResponse[0].initialFees
1
849
* def bndFees = serverResponse[0].bondFee
0
850
* def isBondRequired = serverResponse[0].isBondRequired
0
851
And def totalFees = serverResponse[0].licensingFees+serverResponse[0].filingFees
0
852
And print totalFees
2
19:24:55.201 [print] 1060.0
855
Given path '/internalapi/api/notification/SaveNotification'
0
857
And header Content-Type = 'application/json; charset=utf-8'
0
858
And header Accept = 'application/json; text/plain;*/*'
0
859
And header authorization = 'Bearer ' + strToken
0
860
And request {"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}
0
861
When method post
163
19:24:55.204 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/notification/SaveNotification 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 2006 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13862,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13862,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13862,"createdBy":"Tarun Gupta"} 19:24:55.365 response time in milliseconds: 161 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:54:52 GMT 2 < Content-Length: 5 false
862
Then status 200
0
863
And print response
1
19:24:55.369 [print] false
# And header Content-Type = 'application/json; charset=utf-8'
869
Given path 'internalapi/api/licensing/fees/details/save/'+appId+'/false'
1
871
And header Accept = 'application/json; text/plain;*/*'
0
872
And header authorization = 'Bearer ' + strToken
1
874
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":'#(amount)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":"0.00","totalFees":'#(totalFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(licTerm)',"termDesc":'#(licTermDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
4
875
When method post
319
19:24:55.382 request: 3 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13862/false 3 > Accept: application/json; text/plain;*/* 3 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 3 > Content-Type: application/json; charset=UTF-8 3 > Content-Length: 5071 3 > Host: slaleapqaapi.svam.com 3 > Connection: Keep-Alive 3 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 3 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13862,"slaintakeDate":"2022-11-15T19:24:54.912Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:24:54.912Z","amount":1060}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119057","applicationTypeId":1,"appFeesId":0,"appId":13862,"feesRefId":6039,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"0.00","totalFees":1060.0,"filingFees":"100","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":1060.0,"amountReceived":"0.00","waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-11-22T19:24:54.880Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13862,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13862,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13862,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13862,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13862,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13862,"createdBy":"Tarun Gupta"},"taskId":null} 19:24:55.697 response time in milliseconds: 315 3 < 200 3 < Content-Type: application/json; charset=utf-8 3 < Server: Microsoft-IIS/10.0 3 < Strict-Transport-Security: max-age=2592000 3 < X-Powered-By: ASP.NET 3 < Date: Tue, 15 Nov 2022 13:54:52 GMT 3 < Content-Length: 4 true
876
Then status 200
0
878
Given path 'internalapi/api/licensing/fees/check-payments/get/'+appId
0
879
And header authorization = 'Bearer ' + strToken
0
880
And request {}
0
881
When method get
182
19:24:55.699 request: 4 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/check-payments/get/13862 4 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 4 > Content-Type: application/json; charset=UTF-8 4 > Content-Length: 2 4 > Host: slaleapqaapi.svam.com 4 > Connection: Keep-Alive 4 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 4 > Accept-Encoding: gzip,deflate {} 19:24:55.880 response time in milliseconds: 181 4 < 200 4 < Content-Length: 441 4 < Content-Type: application/json; charset=utf-8 4 < Server: Microsoft-IIS/10.0 4 < Strict-Transport-Security: max-age=2592000 4 < X-Powered-By: ASP.NET 4 < Date: Tue, 15 Nov 2022 13:54:52 GMT [{"checkDetailId":2345,"appId":13862,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T00:00:00","slaintakeDate":"2022-11-15T00:00:00","amount":1060.0000,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T08:54:52.99","modifiedBy":null,"modifiedDate":null}]
882
Then status 200
0
883
And def checkDetailId = response[0].checkDetailId
0
884
And print checkDetailId
0
19:24:55.880 [print] 2345
885
* def amount = response[0].amount
0
886
* def underpaidAmount = totalFees-amount
10
888
And print 'underpaidAmount- ',underpaidAmount
0
19:24:55.891 [print] underpaidAmount- 0.0
890
Given path '/internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
891
And header Content-Type = 'application/json; charset=utf-8'
0
892
* def futureDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
903
* def futureDate = futureDateFunc()
1
904
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
913
* def date = getDate2()
5
915
And header Accept = 'application/json; text/plain;*/*'
0
916
And header authorization = 'Bearer ' + strToken
0
917
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":'#(totalFees)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":'#(licInitialFees)',"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":'#(renewalFees)',"totalFees":'#(totalFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":'#(licAncillaryFees)',"isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
0
920
When method post
298
19:24:55.911 request: 5 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13862/false 5 > Content-Type: application/json; charset=utf-8 5 > Accept: application/json; text/plain;*/* 5 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 5 > Content-Length: 5068 5 > Host: slaleapqaapi.svam.com 5 > Connection: Keep-Alive 5 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 5 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13862,"slaintakeDate":"2022-11-15T19:24:55.898Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:24:55.898Z","amount":1060.0}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119057","applicationTypeId":1,"appFeesId":0,"appId":13862,"feesRefId":6039,"initialFees":0.0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"30","totalFees":1060.0,"filingFees":"100","ancillaryFees":"0","isFeesWaived":false,"underPaymentAmount":1060.0,"amountReceived":"0.00","waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-11-22T19:24:54.880Z","emailNotificationDetail":{"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13862,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13862,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13862,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13862,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13862,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13862,"createdBy":"Tarun Gupta"},"taskId":null} 19:24:56.197 response time in milliseconds: 286 5 < 200 5 < Content-Length: 4 5 < Content-Type: application/json; charset=utf-8 5 < Server: Microsoft-IIS/10.0 5 < Strict-Transport-Security: max-age=2592000 5 < X-Powered-By: ASP.NET 5 < Date: Tue, 15 Nov 2022 13:54:53 GMT true
921
Then status 200
0
# ********* SAVE Application Details To Save *********************
928
Given path '/internalapi/api/licensing/app/save'
0
929
And header authorization = 'Bearer ' + strToken
0
930
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":'#(CityName)',"fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
10
931
When method post
392
19:24:56.310 request: 6 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 6 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 6 > Content-Type: application/json; charset=UTF-8 6 > Content-Length: 30721 6 > Host: slaleapqaapi.svam.com 6 > Connection: Keep-Alive 6 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 6 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13862,"formID":1165,"applicationID":"NA-0111-22-119057","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:24:56.602 response time in milliseconds: 288 6 < 200 6 < Content-Length: 51 6 < Content-Type: application/json; charset=utf-8 6 < Server: Microsoft-IIS/10.0 6 < Strict-Transport-Security: max-age=2592000 6 < X-Powered-By: ASP.NET 6 < Date: Tue, 15 Nov 2022 13:54:53 GMT {"appId":13862,"applicationId":"NA-0111-22-119057"}
932
Then status 200
0
935
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
936
And header authorization = 'Bearer ' + strToken
0
937
And header Content-Type = 'application/json; charset=utf-8'
0
938
And header Accept = 'application/json; text/plain;*/*'
0
939
And request ""
0
940
When method get
235
19:24:56.605 request: 7 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13862 7 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 7 > Content-Type: application/json; charset=utf-8 7 > Accept: application/json; text/plain;*/* 7 > Content-Length: 0 7 > Host: slaleapqaapi.svam.com 7 > Connection: Keep-Alive 7 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 7 > Accept-Encoding: gzip,deflate 19:24:56.839 response time in milliseconds: 233 7 < 200 7 < Content-Length: 660 7 < Content-Type: application/json; charset=utf-8 7 < Server: Microsoft-IIS/10.0 7 < Strict-Transport-Security: max-age=2592000 7 < X-Powered-By: ASP.NET 7 < Date: Tue, 15 Nov 2022 13:54:53 GMT [{"licenseName":"Restaurant - Beer","applicationId":"NA-0111-22-119057","applicationTypeId":1,"appFeesId":3081,"appId":13862,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":0.0,"totalFees":0.0,"filingFees":100.00,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
941
Then status 200
0
942
And print response[0].appFeesId
0
19:24:56.839 [print] 3081
943
And def appFeesId1 = response[0].appFeesId
0
944
And def feesRefId1 = response[0].feesRefId
0
945
And print appFeesId1
0
19:24:56.841 [print] 3081
946
And print feesRefId1
0
19:24:56.841 [print] 6039
947
And def applicationTypeId = response[0].applicationTypeId
0
948
And print applicationTypeId
0
19:24:56.842 [print] 1
# ********* Save PAYMENT *********************
951
Given path '/internalapi/api/licensing/fees/details/save/'+appId +'/false'
0
953
* def slaDate = licFeesDate()
1
954
* def slaaDate = licDate()
1
955
* def licInitialFees1 = licInitialFees+''
0
956
And print licInitialFees1
0
19:24:56.845 [print] 0
957
* def renewalFees1 = renewalFees+''
0
958
And print renewalFees1
0
19:24:56.845 [print] 30
959
* def totalFees1 = totalFees+''
3
961
And print totalFees1
0
19:24:56.849 [print] 1060
962
* def licAncillaryFees1 = licAncillaryFees+''
0
963
* def licfilingFees1 = licfilingFees+''
1
965
And header authorization = 'Bearer ' + strToken
0
966
And request {"checks":[{"checkDetailId":'#(checkDetailId)',"appId":'#(appId)',"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":'#(date)',"slaintakeDate":'#(date)',"amount":'#(amount)',"appliedTo":null,"amountUsed":'#(amount)',"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":'#(date)',"modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":'#(licFeesRefId)',"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":"0.00","totalFees":'#(totalFees1)',"filingFees":'#(licfilingFees1)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(underpaidAmount)',"amountReceived":'#(amount)',"waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":'#(appId)',"checkDetailId":'#(checkDetailId)',"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":'#(amount)',"amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
1
971
When method post
336
19:24:56.854 request: 8 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13862/false 8 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 8 > Content-Type: application/json; charset=UTF-8 8 > Content-Length: 5458 8 > Host: slaleapqaapi.svam.com 8 > Connection: Keep-Alive 8 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 8 > Accept-Encoding: gzip,deflate {"checks":[{"checkDetailId":2345,"appId":13862,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T19:24:55.898Z","slaintakeDate":"2022-11-15T19:24:55.898Z","amount":1060.0,"appliedTo":null,"amountUsed":1060.0,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T19:24:55.898Z","modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119057","applicationTypeId":1,"appFeesId":6039,"appId":13862,"feesRefId":6039,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"0.00","totalFees":"1060","filingFees":"100","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":1060.0,"waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":13862,"checkDetailId":2345,"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":1060.0,"amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":"2022-11-22T19:24:54.880Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13862,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13862,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13862,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13862,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13862,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13862,"createdBy":"Tarun Gupta"},"taskId":null} 19:24:57.187 response time in milliseconds: 332 8 < 200 8 < Content-Length: 4 8 < Content-Type: application/json; charset=utf-8 8 < Server: Microsoft-IIS/10.0 8 < Strict-Transport-Security: max-age=2592000 8 < X-Powered-By: ASP.NET 8 < Date: Tue, 15 Nov 2022 13:54:53 GMT true
972
Then status 200
0
973
And print response
0
19:24:57.187 [print] true
# ********* SAVE Application Details To Save *********************
978
Given path '/internalapi/api/licensing/app/save'
0
979
And header authorization = 'Bearer ' + strToken
0
980
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":'#(CityName)',"fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
1
981
When method post
269
19:24:57.196 request: 9 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 9 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 9 > Content-Type: application/json; charset=UTF-8 9 > Content-Length: 30721 9 > Host: slaleapqaapi.svam.com 9 > Connection: Keep-Alive 9 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 9 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13862,"formID":1165,"applicationID":"NA-0111-22-119057","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:24:57.458 response time in milliseconds: 262 9 < 200 9 < Content-Length: 51 9 < Content-Type: application/json; charset=utf-8 9 < Server: Microsoft-IIS/10.0 9 < Strict-Transport-Security: max-age=2592000 9 < X-Powered-By: ASP.NET 9 < Date: Tue, 15 Nov 2022 13:54:54 GMT {"appId":13862,"applicationId":"NA-0111-22-119057"}
982
Then status 200
0
983
And def serverResponse = response
0
815
* call read('LicensesCommonMethods.feature@SubmitLicenseAndValidateLicStatus') {expStatus:'Awaiting Review'}
10821
>>
karate.UseCases.LicensesCommonMethods
9186
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Application SUBMIT *********************
1099
Given path '/internalapi/api/licensing/app/submit'
0
1100
And header authorization = 'Bearer ' + strToken
0
1101
And request {"appId":'#(appId)',"wfType":null}
0
1102
When method post
293
19:24:59.098 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/submit 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 29 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"appId":13862,"wfType":null} 19:24:59.389 response time in milliseconds: 291 1 < 200 1 < Content-Length: 123 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:54:56 GMT {"success":true,"submittedApps":[{"success":true,"taskId":0,"appId":13862,"applicationId":"NA-0111-22-119057","error":""}]}
1103
Then status 200
0
1104
And def serverResponse = response
0
1105
And match response.success == true
11
1106
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
8879
>>
karate.UseCases.LicensesCommonMethods
5426
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
6
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
2
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
3
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
5199
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
211
19:25:08.058 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13862 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:25:08.267 response time in milliseconds: 209 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:05 GMT 1 < Content-Length: 214 {"applicationId":"NA-0111-22-119057","submitDate":"2022-11-15T08:54:56.6","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:25:08.268 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
2
816
* call read('LicensesCommonMethods.feature@AssignApplicationsToExaminer') {}
4561
>>
karate.UseCases.LicensesCommonMethods
2256
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* AssignApplicationsSaveDigestDataToExaminer *********************
1139
Given path '/internalapi/api/licensing/examiner/assignApplicationsToExaminer'
0
1140
And header authorization = 'Bearer ' + strToken
0
1141
And request [{"appId":'#(appId)',"examinerId":1069,"priority":"Normal"}]
0
1142
When method post
249
19:25:10.596 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/examiner/assignApplicationsToExaminer 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 55 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate [{"appId":13862,"examinerId":1069,"priority":"Normal"}] 19:25:10.842 response time in milliseconds: 245 1 < 200 1 < Content-Length: 5 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:08 GMT false
1143
And def serverResponse = response
0
1144
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
2003
>>
karate.UseCases.LicensesCommonMethods
599
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
408
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
188
19:25:12.651 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13862 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:25:12.838 response time in milliseconds: 187 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:10 GMT 1 < Content-Length: 214 {"applicationId":"NA-0111-22-119057","submitDate":"2022-11-15T08:54:56.6","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:25:12.838 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
0
817
* call read('LicensesCommonMethods.feature@ExaminerReviewApprovalToLB') {}
1947
>>
karate.UseCases.LicensesCommonMethods
1330
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Examiner Review Approval to LB *********************
1149
* def summisionDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS"); var date = new java.util.Date(); return sdf.format(date); }
1157
Given path '/internalapi/api/licensing/examiner-review/SaveNewLicense'
0
1158
* def formatedSumbitDate = summisionDate()
0
1159
And header authorization = 'Bearer ' + strToken
0
1160
And header current-wfroleid = 4
0
1161
And request {"isFingerPrintsApproved":false,"isFingerPrintsRequired":false,"isCorpLLCDissolved":false,"isCorpLLCDTaken":false,"isSendPDLetter":false,"isDisable500LB_FBPT":false,"isDisableLBForPD":false,"isDisableLBForCaseClosed":false,"isDisableLateRenewalAndUnderpayment":false,"isLiquidatorPermitHasCompleted":-1,"isSubmit":true,"fieldDeficiencies":[],"masterFileData":[],"combinedCraftData":[],"application":{"applicationCategory":1,"appId":'#(appId)',"applicationId":'#(ApplicationId)',"licePermitTypeId":null,"applicationTypeId":1,"formVersionId":1231,"formId":'#(formId)',"legalName":'#(legalName)',"submitDate":'#(formatedSumbitDate)',"isGISRequired":null,"licenseDescription":'#(description)',"recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":'#(CityName)',"priority":"Normal","expirationDate":null,"appStatusId":3,"taskStatus":"Awaiting Review","taskId":1026,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":true,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":false,"isNotQualified":false,"eventDate":null,"appStatus":{"appStatusId":3,"statusDescription":"Under Review","isActive":true,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":{"appExaminerId":1069,"appId":'#(appId)',"examinerId":1069,"name":null,"assignDate":'#(formatedSumbitDate)',"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"assignAppToLB":null,"licePermitType":{"licPermitTypeId":'#(mainLicensePermitTypeId)',"type":"1","category":"1","product":'#(productName)',"class":null,"description":null,"sectionOfLaw":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isTempPermit":false,"isELicensingPermit":false,"isAdditionalBar":false},"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":'#(mainLicensePermitTypeId)',"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":true,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":'#(formatedSumbitDate)'},"appId":'#(appId)',"notificationTypeId":2028,"applicationType":1,"decisionType":{"name":"Send to Licensing Board","value":2},"emailNotificationModel":{"applicant":{},"attorney":{},"communityBoard":{},"other":{}},"hasErrors":[],"taskId":1026,"newComments":"","recommendedDecisionId":null};
0
1162
When method post
268
19:25:13.469 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/examiner-review/SaveNewLicense 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > current-wfroleid: 4 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 3055 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isFingerPrintsApproved":false,"isFingerPrintsRequired":false,"isCorpLLCDissolved":false,"isCorpLLCDTaken":false,"isSendPDLetter":false,"isDisable500LB_FBPT":false,"isDisableLBForPD":false,"isDisableLBForCaseClosed":false,"isDisableLateRenewalAndUnderpayment":false,"isLiquidatorPermitHasCompleted":-1,"isSubmit":true,"fieldDeficiencies":[],"masterFileData":[],"combinedCraftData":[],"application":{"applicationCategory":1,"appId":13862,"applicationId":"NA-0111-22-119057","licePermitTypeId":null,"applicationTypeId":1,"formVersionId":1231,"formId":1165,"legalName":"Automation20221115192444Automation","submitDate":"2022-11-15T19:25:13.467","isGISRequired":null,"licenseDescription":"Restaurant-Beer","recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":"New York","priority":"Normal","expirationDate":null,"appStatusId":3,"taskStatus":"Awaiting Review","taskId":1026,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":true,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":false,"isNotQualified":false,"eventDate":null,"appStatus":{"appStatusId":3,"statusDescription":"Under Review","isActive":true,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":{"appExaminerId":1069,"appId":13862,"examinerId":1069,"name":null,"assignDate":"2022-11-15T19:25:13.467","isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"assignAppToLB":null,"licePermitType":{"licPermitTypeId":40,"type":"1","category":"1","product":"RestaurantBeer","class":null,"description":null,"sectionOfLaw":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isTempPermit":false,"isELicensingPermit":false,"isAdditionalBar":false},"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":40,"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":true,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":"2022-11-15T19:25:13.467"},"appId":13862,"notificationTypeId":2028,"applicationType":1,"decisionType":{"name":"Send to Licensing Board","value":2},"emailNotificationModel":{"applicant":{},"attorney":{},"communityBoard":{},"other":{}},"hasErrors":[],"taskId":1026,"newComments":"","recommendedDecisionId":null} 19:25:13.735 response time in milliseconds: 266 1 < 200 1 < Content-Length: 4 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:10 GMT true
1163
Then status 200
0
1164
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
1056
>>
karate.UseCases.LicensesCommonMethods
487
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
11
5
* def DbUtils = Java.type('utils.DbUtils')
4
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
267
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
202
19:25:14.583 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13862 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:25:14.784 response time in milliseconds: 201 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:12 GMT 1 < Content-Length: 214 {"applicationId":"NA-0111-22-119057","submitDate":"2022-11-15T08:54:56.6","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:25:14.785 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
0
818
* call read('LicensesCommonMethods.feature@LBClaimingQueue') {}
1652
>>
karate.UseCases.LicensesCommonMethods
1171
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* LB Claiming Queue *********************
1249
Given path 'internalapi/api/licensing/claiming-queue/add/'+appId +'/1069'
0
1250
And header authorization = 'Bearer ' + strToken
0
1251
And header current-wfroleid = 5
0
1252
And request {}
0
1253
When method post
219
19:25:15.273 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/claiming-queue/add/13862/1069 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > current-wfroleid: 5 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:25:15.491 response time in milliseconds: 218 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:12 GMT 1 < Content-Length: 4 true
1254
Then status 200
0
1255
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
949
>>
karate.UseCases.LicensesCommonMethods
420
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
1
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
252
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
163
19:25:16.266 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13862 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:25:16.429 response time in milliseconds: 163 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:13 GMT 1 < Content-Length: 214 {"applicationId":"NA-0111-22-119057","submitDate":"2022-11-15T08:54:56.6","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:25:16.429 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
0
819
* def expirationDate = fundDueDateFunc(10)
1
820
* call read('LicensesCommonMethods.feature@LBApprovalWithDueDate') {approvalName:'Approved', expStatus:'Approved'}
1799
>>
karate.UseCases.LicensesCommonMethods
1274
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* LB Approval *********************
2346
Given path '/internalapi/api/licensing/search/GetEmailNotificationByAppIdAndNotificationTypeId/'+appId+'/0'
0
2347
And header authorization = 'Bearer ' + strToken
0
2348
And request ''
0
2349
When method get
156
19:25:16.972 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/search/GetEmailNotificationByAppIdAndNotificationTypeId/13862/0 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: text/plain; charset=UTF-8 1 > Content-Length: 0 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate 19:25:17.126 response time in milliseconds: 154 1 < 200 1 < Content-Length: 1959 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:13 GMT {"applicant":{"communicationId":25254,"email":"automation@svam.com","appId":13862,"emailContactTypeId":1,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":25257,"email":"sbandi@svam.com","appId":13862,"emailContactTypeId":2,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null}}
2350
Then status 200
0
2351
And def serverResponse = response
0
2352
* def applicantCommId = serverResponse.applicant.communicationId
0
2353
* def attorneyCommId = serverResponse.attorney.communicationId
0
2355
Given path '/internalapi/api/licensing/new-license/saveDecision'
0
2356
And header authorization = 'Bearer ' + strToken
0
2357
And header current-wfroleid = 5
0
2358
* def getSelectedDecisionFunc =
0
function(value1){ if (value1 == 'Approved'){ return 1; } else if (value1 == 'Disapproved'){ return 2; } else if (value1 == 'Disapproval to Counsel'){ return 3; }else if (value1 == 'Withdrawal'){ return 4; }else if (value1 == 'Conditionally Approved'){ return 5; }else if (value1 == 'FB Decision Required'){ return 6; }else if (value1 == 'Return to Examiner'){ return 7; } else { return 1; } }
2384
* def selectedDecisionCode = getSelectedDecisionFunc(approvalName)
2
2385
And print selectedDecisionCode
0
19:25:17.130 [print] 1
2386
And request {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":'#(appId)',"applicationType":1,"applicationId":'#(ApplicationId)',"legalName":'#(legalName)',"statusId":3,"decisionType":{"name":'#(approvalName)',"value":'#(selectedDecisionCode)'},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":'#(effectiveDate)',"expirationDate":'#(expirationDate)',"stipulations":[],"descriptions":[]}}
0
2388
When method post
266
19:25:17.131 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/new-license/saveDecision 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > current-wfroleid: 5 2 > Content-Type: application/json; charset=UTF-8 2 > Content-Length: 2479 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":13862,"applicationType":1,"applicationId":"NA-0111-22-119057","legalName":"Automation20221115192444Automation","statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":"2022-11-15","expirationDate":"2022-11-25T19:25:16.449Z","stipulations":[],"descriptions":[]}} 19:25:17.395 response time in milliseconds: 264 2 < 200 2 < Content-Length: 4 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:55:13 GMT true
2389
Then status 200
0
2390
And def serverResponse = response
0
2391
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
847
>>
karate.UseCases.LicensesCommonMethods
318
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
1
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
162
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
151
19:25:18.080 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13862 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:25:18.231 response time in milliseconds: 151 1 < 200 1 < Content-Length: 207 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:15 GMT {"applicationId":"NA-0111-22-119057","submitDate":"2022-11-15T08:54:56.6","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Approved"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:25:18.231 [print] Approved
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1
821
* call read('LicensesCommonMethods.feature@ValidateLicenseApplicationStatus') {LicAppStatus:'Approved'}
728
>>
karate.UseCases.LicensesCommonMethods
219
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1326
Given path 'internalapi/api/GenericSearch/SearchLicense'
0
1327
And header Content-Type = 'application/json; charset=utf-8'
0
1328
And header Accept = 'application/json; text/plain;*/*'
0
1329
And header authorization = 'Bearer ' + strToken
0
1330
And params {page:1,pageSize:10}
1
1331
And request [{"dataTypeValue":"Text","key":"ApplicationId","operatorValue":"=","value":'#(ApplicationId)'}]
0
1332
When method post
214
19:25:18.757 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/GenericSearch/SearchLicense?pageSize=10&page=1 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 96 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate [{"dataTypeValue":"Text","key":"ApplicationId","operatorValue":"=","value":"NA-0111-22-119057"}] 19:25:18.970 response time in milliseconds: 213 1 < 200 1 < Content-Length: 684 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:15 GMT {"data":[{"acaId":13862,"acaType":"application","applicationLicenseId":"0111-22-129124","legacySerialNo":null,"legalName":"Automation20221115192444Automation","dba":null,"licenseDescription":"Restaurant-Beer","expirationDate":"2022-11-25T00:00:00","examinerAssigned":"Tarun Gupta","premisesAddress":"Address1 Address2 New York New York New York 12345 1234 United States (US)","applicantAddress":"Address1 Address2 New York New York New York 12345 1234 United States (US)","feinSsn":"","formId":1165,"applicationId":"NA-0111-22-119057","licenseId":"0111-22-129124","wfRoleId":2,"applicationStatus":"Approved","licenseStatus":"Active"}],"total":1,"aggregateResults":null,"errors":null}
1333
Then status 200
0
1334
And print response
0
19:25:18.970 [print] { "data": [ { "acaId": 13862, "acaType": "application", "applicationLicenseId": "0111-22-129124", "legacySerialNo": null, "legalName": "Automation20221115192444Automation", "dba": null, "licenseDescription": "Restaurant-Beer", "expirationDate": "2022-11-25T00:00:00", "examinerAssigned": "Tarun Gupta", "premisesAddress": "Address1 Address2 New York New York New York 12345 1234 United States (US)", "applicantAddress": "Address1 Address2 New York New York New York 12345 1234 United States (US)", "feinSsn": "", "formId": 1165, "applicationId": "NA-0111-22-119057", "licenseId": "0111-22-129124", "wfRoleId": 2, "applicationStatus": "Approved", "licenseStatus": "Active" } ], "total": 1, "aggregateResults": null, "errors": null }
1335
* match response.data[0].applicationStatus == '#(LicAppStatus)'
1
823
* call read('LicensesCommonMethods.feature@GetLicenseId') {}
663
>>
karate.UseCases.LicensesCommonMethods
173
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
3212
Given path '/internalapi/api/licensing/LBDecision/getLicenseByAppId/' + appId +'/-1'
0
3213
And header authorization = 'Bearer ' + strToken
0
3214
* def EffectiveDate = EffDate()
0
3215
And request {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":'#(appId)',"applicationType":1,"applicationId":'#(ApplicationId)',"legalName":null,"statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":'#(EffectiveDate)',"expirationDate":'#(expiryDate)',"stipulations":[],"descriptions":[]}}
3
3216
When method get
163
19:25:19.461 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/LBDecision/getLicenseByAppId/13862/-1 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 2436 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":13862,"applicationType":1,"applicationId":"NA-0111-22-119057","legalName":null,"statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":"2022-11-15","expirationDate":"#(expiryDate)","stipulations":[],"descriptions":[]}} 19:25:19.623 response time in milliseconds: 162 1 < 200 1 < Content-Length: 2853 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:16 GMT {"license":{"licId":1473,"applicationId":null,"licenseId":"0111-22-129124","licensePermitId":null,"licePermitTypeId":40,"appId":13862,"legacySerialNo":null,"issueDate":null,"expiryDate":"2025-10-31T00:00:00","effectiveDate":"2022-11-15T00:00:00","seasonalStartDate":null,"seasonalEndDate":null,"safeKeepingExpiryDate":null,"status":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"extTempPermitEnabled":false,"application":{"applicationCategory":null,"appId":null,"applicationId":null,"licePermitTypeId":null,"applicationTypeId":null,"formVersionId":null,"formId":null,"legalName":null,"submitDate":null,"isGISRequired":null,"licenseDescription":null,"recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":null,"priority":null,"expirationDate":null,"appStatusId":null,"taskStatus":null,"taskId":null,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":null,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":null,"isNotQualified":null,"eventDate":null,"appStatus":{"appStatusId":0,"statusDescription":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":null,"assignAppToLB":null,"licePermitType":null,"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":0,"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isCaseOpenSameAddress":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"clericalName":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"isFairOrFestival":false,"isShowEffExpDateOnLBReview":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"options":null,"emailNotificationModel":null,"taskOptionsListNested":null,"days":0,"permit":null,"licPermitType":null,"licensePermitMapping":null,"licenseFee":null,"accountBalance":null,"licenseDescription":null,"isSeasonal":false,"isSummerSeasonal":false,"newExpiryDate":null,"amountDue":null,"originalLicenseFee":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"wfRoleId":0},"person":[],"totalRecord":0,"apps":[]}
3217
Then status 200
0
3218
And def serverResponse = response
0
3219
And print serverResponse
2
19:25:19.626 [print] { "license": { "licId": 1473, "applicationId": null, "licenseId": "0111-22-129124", "licensePermitId": null, "licePermitTypeId": 40, "appId": 13862, "legacySerialNo": null, "issueDate": null, "expiryDate": "2025-10-31T00:00:00", "effectiveDate": "2022-11-15T00:00:00", "seasonalStartDate": null, "seasonalEndDate": null, "safeKeepingExpiryDate": null, "status": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null, "extTempPermitEnabled": false, "application": { "applicationCategory": null, "appId": null, "applicationId": null, "licePermitTypeId": null, "applicationTypeId": null, "formVersionId": null, "formId": null, "legalName": null, "submitDate": null, "isGISRequired": null, "licenseDescription": null, "recommendedDecisionId": null, "status500": null, "isApplicableForPDLetter": false, "countyName": null, "priority": null, "expirationDate": null, "appStatusId": null, "taskStatus": null, "taskId": null, "currentWfstatus": null, "communityBoard": null, "isLicenseApplication": null, "currentDueDate": null, "isFinalDeficiency": null, "isHighlyDeficient": null, "isAllDeficienciesMet": null, "pastDueDate": null, "memo": null, "isOneTimePermit": null, "dueDateAction": null, "isDisapprovedForCause": null, "isNotQualified": null, "eventDate": null, "appStatus": { "appStatusId": 0, "statusDescription": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null }, "applicationType": null, "assignAppExaminer": null, "assignAppToLB": null, "licePermitType": null, "assoApplicationList": [ ], "isTempPermit": null, "isTempOrLiq": false, "licPermitTypeId": 0, "isAssociatedLicense": null, "effectiveDate": null, "assignedUserId": null, "amendmentTypeId": null, "amendmentType": null, "disapprovedDate": null, "condApprovedDate": null, "addressId": null, "isCaseOpen": null, "isClosed": null, "isCaseOpenSameAddress": null, "isSpecialEventPlusFour": null, "isSpecialEventInsideFiveBoroughs": null, "licStatus": null, "createdBy": null, "clericalName": null, "licenseId": null, "address": null, "isNybeApp": false, "isHearingCompleted": null, "does500FtHearingExist": null, "parentAppStatus": null, "premisesAppCount": 0, "statusDescription": null, "eventAddress": null, "isFairOrFestival": false, "isShowEffExpDateOnLBReview": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskRoleId": 0, "taskDecision": null, "isActive": null, "createdDate": null, "modifiedBy": null, "wfRoleId": 0, "modifiedDate": null }, "options": null, "emailNotificationModel": null, "taskOptionsListNested": null, "days": 0, "permit": null, "licPermitType": null, "licensePermitMapping": null, "licenseFee": null, "accountBalance": null, "licenseDescription": null, "isSeasonal": false, "isSummerSeasonal": false, "newExpiryDate": null, "amountDue": null, "originalLicenseFee": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskId": null, "taskRoleId": 0, "taskDecision": null, "wfRoleId": 0 }, "person": [ ], "totalRecord": 0, "apps": [ ] }
3220
And def licId = serverResponse.license.licId
0
3221
And def licenseId = serverResponse.license.licenseId
0
3222
And def ActEffDate = serverResponse.license.seasonalStartDate
0
3223
And def ActExpDate = serverResponse.license.expiryDate
0
3224
And print serverResponse
2
19:25:19.631 [print] { "license": { "licId": 1473, "applicationId": null, "licenseId": "0111-22-129124", "licensePermitId": null, "licePermitTypeId": 40, "appId": 13862, "legacySerialNo": null, "issueDate": null, "expiryDate": "2025-10-31T00:00:00", "effectiveDate": "2022-11-15T00:00:00", "seasonalStartDate": null, "seasonalEndDate": null, "safeKeepingExpiryDate": null, "status": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null, "extTempPermitEnabled": false, "application": { "applicationCategory": null, "appId": null, "applicationId": null, "licePermitTypeId": null, "applicationTypeId": null, "formVersionId": null, "formId": null, "legalName": null, "submitDate": null, "isGISRequired": null, "licenseDescription": null, "recommendedDecisionId": null, "status500": null, "isApplicableForPDLetter": false, "countyName": null, "priority": null, "expirationDate": null, "appStatusId": null, "taskStatus": null, "taskId": null, "currentWfstatus": null, "communityBoard": null, "isLicenseApplication": null, "currentDueDate": null, "isFinalDeficiency": null, "isHighlyDeficient": null, "isAllDeficienciesMet": null, "pastDueDate": null, "memo": null, "isOneTimePermit": null, "dueDateAction": null, "isDisapprovedForCause": null, "isNotQualified": null, "eventDate": null, "appStatus": { "appStatusId": 0, "statusDescription": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null }, "applicationType": null, "assignAppExaminer": null, "assignAppToLB": null, "licePermitType": null, "assoApplicationList": [ ], "isTempPermit": null, "isTempOrLiq": false, "licPermitTypeId": 0, "isAssociatedLicense": null, "effectiveDate": null, "assignedUserId": null, "amendmentTypeId": null, "amendmentType": null, "disapprovedDate": null, "condApprovedDate": null, "addressId": null, "isCaseOpen": null, "isClosed": null, "isCaseOpenSameAddress": null, "isSpecialEventPlusFour": null, "isSpecialEventInsideFiveBoroughs": null, "licStatus": null, "createdBy": null, "clericalName": null, "licenseId": null, "address": null, "isNybeApp": false, "isHearingCompleted": null, "does500FtHearingExist": null, "parentAppStatus": null, "premisesAppCount": 0, "statusDescription": null, "eventAddress": null, "isFairOrFestival": false, "isShowEffExpDateOnLBReview": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskRoleId": 0, "taskDecision": null, "isActive": null, "createdDate": null, "modifiedBy": null, "wfRoleId": 0, "modifiedDate": null }, "options": null, "emailNotificationModel": null, "taskOptionsListNested": null, "days": 0, "permit": null, "licPermitType": null, "licensePermitMapping": null, "licenseFee": null, "accountBalance": null, "licenseDescription": null, "isSeasonal": false, "isSummerSeasonal": false, "newExpiryDate": null, "amountDue": null, "originalLicenseFee": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskId": null, "taskRoleId": 0, "taskDecision": null, "wfRoleId": 0 }, "person": [ ], "totalRecord": 0, "apps": [ ] }
3225
And print 'licId : ' , licId
0
19:25:19.631 [print] licId : 1473
3226
And print 'licenseId : ' , licenseId
0
19:25:19.631 [print] licenseId : 0111-22-129124
3227
And match licId != []
0
3228
And match licenseId != []
0
824
And print licenseId
0
19:25:19.640 [print] 0111-22-129124
825
* def notQualifiedApplication = false
0
826
* def notQlfdAppMessage = ''
0
827
* def NameSearch = 'automation'
0
829
* call read('RenewalCommonMethods.feature@IntakeRenewalLicense') {}
3156
>>
karate.UseCases.RenewalCommonMethods
2533
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
0
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
169
Given path '/internalapi/api/licensing/search/searchLicensesAndPermits/'
0
170
And header Content-Type = 'application/json; charset=utf-8'
0
172
And header Accept = 'application/json; text/plain;*/*'
0
173
And header authorization = 'Bearer ' + strToken
0
176
And request {"WfTaskIdList":[],"LicenseStatusList":[19,45,40],"ShowLicensesAndPermits":true,"Status":null,"isTempPermit":null,"ApplicationId":null,"LicensePermitId":'#(licenseId)',"LegalName":null,"FEIN":null,"applyFor":""}
0
177
When method POST
241
19:25:20.263 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/search/searchLicensesAndPermits 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 213 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"WfTaskIdList":[],"LicenseStatusList":[19,45,40],"ShowLicensesAndPermits":true,"Status":null,"isTempPermit":null,"ApplicationId":null,"LicensePermitId":"0111-22-129124","LegalName":null,"FEIN":null,"applyFor":""} 19:25:20.503 response time in milliseconds: 239 1 < 200 1 < Content-Length: 1289 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:16 GMT {"licenses":[{"lpId":1473,"licensePermitId":"0111-22-129124","licPermitTypeId":40,"isAccociatedLicense":false,"appId":13862,"mainAppId":13862,"status":"Active","legacySerialNo":null,"isLicense":true,"isPermit":null,"issueDate":"2022-11-15T00:00:00","expiryDate":"2022-11-25T00:00:00","effectiveDate":"2022-11-15T00:00:00","safeKeepingExpiryDate":null,"licensePermitStatusId":19,"combinedCraftId":null,"masterFileId":null,"isApplicableForTransfer":null,"surrenderDate":null,"isActive":true,"createdDate":"2022-11-15T08:55:14.61","modifiedDate":null,"submitDate":"2022-11-15T08:54:56.6","description":"Restaurant-Beer","county":"New York","legalName":"Automation20221115192444Automation","fein":"","formId":1165,"isRenewalRequird":true,"dba":null,"associatePermits":[],"provisions":[],"address":{"addressId":null,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":null,"county":"New York","zipCode":"12345","zip4":null,"street":null,"telephoneNumber":null,"country":null,"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":null,"serialNo":0,"addressType":null,"state":null},"mfCCId":null}],"totalRecord":1}
178
Then status 200
0
179
* def licPermitTypeId = response.licenses[0].licPermitTypeId
0
180
* def lpId = response.licenses[0].lpId
0
181
* def effectiveDate = response.licenses[0].effectiveDate
0
182
* def expiryDate = response.licenses[0].expiryDate
0
183
* def legalName = response.licenses[0].legalName
0
184
* def licAppId = response.licenses[0].appId
0
185
* def submitDate = response.licenses[0].submitDate
1
186
* call read('LicensesCommonMethods.feature@GetCountyList') {}
1860
>>
karate.UseCases.LicensesCommonMethods
418
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
117
Given path '/internalapi/api/reference'
0
118
* def dbSts = db.cleanHeap()
267
119
And header authorization = 'Bearer ' + strToken
0
120
And header Content-Type = 'application/json;charset=utf-8'
0
121
And header Accept = 'text/plain'
0
# * def query = {name:countyzone&onlyActives:true}
123
And params {name:countyzone,onlyActives:true}
0
#And param onlyActives='true'
125
And request {}
0
126
When method get
146
19:25:22.215 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/reference?name=countyzone&onlyActives=true 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json;charset=utf-8 1 > Accept: text/plain 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:25:22.361 response time in milliseconds: 145 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:19 GMT 1 < Content-Length: 11712 {"values":[{"CountyId":1,"County":"New York","ShortName":"NEW","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T00:00:00","ModifiedBy":"esandoval","ModifiedDate":"2020-11-10T11:30:56.047"},{"CountyId":2,"County":"Kings","ShortName":"KING","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":3,"County":"Bronx","ShortName":"BRON","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":4,"County":"Queens","ShortName":"QUEE","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":5,"County":"Richmond","ShortName":"RICH","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":6,"County":"Nassau","ShortName":"NASS","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":7,"County":"Suffolk","ShortName":"SUFF","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":8,"County":"Westchester","ShortName":"WEST","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":9,"County":"Orange","ShortName":"ORAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":10,"County":"Putnam","ShortName":"PUTN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":11,"County":"Rockland","ShortName":"ROCK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":12,"County":"Albany","ShortName":"ALBA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":13,"County":"Clinton","ShortName":"CLIN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":14,"County":"Columbia","ShortName":"COLU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":15,"County":"Dutchess","ShortName":"DUTC","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":16,"County":"Essex","ShortName":"ESSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":17,"County":"Franklin","ShortName":"FRAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":18,"County":"Fulton","ShortName":"FULT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":19,"County":"Greene","ShortName":"GREE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":20,"County":"Hamilton","ShortName":"HAMI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":21,"County":"Montgomery","ShortName":"MONT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":22,"County":"Rensselaer","ShortName":"RENS","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":23,"County":"Saratoga","ShortName":"SARA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":24,"County":"Schenectady","ShortName":"SCHE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":25,"County":"Schoharie","ShortName":"SCHO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":26,"County":"Sullivan","ShortName":"SULL","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":27,"County":"Ulster","ShortName":"ULST","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":28,"County":"Warren","ShortName":"WARR","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":29,"County":"Washington","ShortName":"WASH","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":30,"County":"Allegany","ShortName":"ALLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":31,"County":"Cattaraugus","ShortName":"CATT","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":32,"County":"Chautauqua","ShortName":"CHAU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":33,"County":"Chemung","ShortName":"CHEM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":34,"County":"Erie","ShortName":"ERIE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":35,"County":"Genesee","ShortName":"GENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":36,"County":"Livingston","ShortName":"LIVI","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":37,"County":"Monroe","ShortName":"MONR","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":38,"County":"Niagara","ShortName":"NIAG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":39,"County":"Ontario","ShortName":"ONTA","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":40,"County":"Orleans","ShortName":"ORLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":41,"County":"Schuyler","ShortName":"SCHU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":42,"County":"Seneca","ShortName":"SENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":43,"County":"Steuben","ShortName":"STEU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":44,"County":"Wayne","ShortName":"WAYN","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":45,"County":"Wyoming","ShortName":"WYOM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":46,"County":"Yates","ShortName":"YATE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":47,"County":"Broome","ShortName":"BROO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":48,"County":"Chenango","ShortName":"CHEN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":49,"County":"Cortland","ShortName":"CORT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":50,"County":"Delaware","ShortName":"DELA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":51,"County":"Herkimer","ShortName":"HERK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":52,"County":"Jefferson","ShortName":"JEFF","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":53,"County":"Lewis","ShortName":"LEWI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":54,"County":"Madison","ShortName":"MADI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":55,"County":"Oneida","ShortName":"ONEI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":56,"County":"Onondaga","ShortName":"ONON","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":57,"County":"Oswego","ShortName":"OSWE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":58,"County":"Otsego","ShortName":"OTSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":59,"County":"St. Lawrence","ShortName":"ST L","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":60,"County":"Cayuga","ShortName":"CAYU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":61,"County":"Tioga","ShortName":"TIOG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":62,"County":"Tompkins","ShortName":"TOMP","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.6","ModifiedBy":null,"ModifiedDate":null}],"name":"countyzone","schema":[{"columnName":"CountyId","dataType":"int","maxLenght":null,"isRequired":true},{"columnName":"County","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ShortName","dataType":"nvarchar","maxLenght":10,"isRequired":false},{"columnName":"ZoneNo","dataType":"int","maxLenght":null,"isRequired":false},{"columnName":"IsActive","dataType":"bit","maxLenght":null,"isRequired":false},{"columnName":"CreatedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"CreatedDate","dataType":"datetime","maxLenght":null,"isRequired":false},{"columnName":"ModifiedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ModifiedDate","dataType":"datetime","maxLenght":null,"isRequired":false}]}
127
* configure continueOnStepFailure = true
0
128
Then status 200
0
129
And def values = response.values
0
130
* configure continueOnStepFailure = true
0
187
* def countyData = karate.jsonPath(values, "$[?(@.CountyId == '" + CountyId + "')]")
1
188
* def countyZone = countyData[0].ZoneNo
0
189
And print countyZone
0
19:25:22.367 [print] 1
190
Given path '/internalapi/api/licensing/renewal/save'
0
191
* def dbSts = db.cleanHeap()
258
192
And header authorization = 'Bearer ' + strToken
0
193
And header Content-Type = 'application/json; charset=utf-8'
0
194
And header Accept = 'application/json; text/plain;*/*'
0
195
And configure continueOnStepFailure = true
0
196
And request {"mainLicenseId":'#(licenseId)',"associated":[],"notQualifiedApplication":'#(notQualifiedApplication)',"NotQualifiedComments":'#(notQlfdAppMessage)'}
0
197
When method Post
166
19:25:22.626 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/renewal/save 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > Content-Length: 108 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"mainLicenseId":"0111-22-129124","associated":[],"notQualifiedApplication":false,"NotQualifiedComments":""} 19:25:22.792 response time in milliseconds: 166 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:55:19 GMT 2 < Content-Length: 170 [{"appId":13863,"formId":1167,"childAppId":null,"mainApplicationId":"RE-22-106368-01","childApplicationId":null,"licensePermitTypeId":40,"description":"Restaurant-Beer"}]
198
* configure continueOnStepFailure = true
0
199
Then status 200
0
200
* def description = response[0].description
0
201
* def appId = response[0].appId
0
202
* def formId = response[0].formId
0
203
* def ApplicationId = response[0].mainApplicationId
0
204
And print ApplicationId
0
19:25:22.792 [print] RE-22-106368-01
205
And match ApplicationId contains 'RE-'
0
207
* def currentYear = '-'+getYearFunc()+'-'
1
208
And match ApplicationId contains currentYear
0
830
* call read('LicensesCommonMethods.feature@FillAndSaveApplicantInformationPage') {}
715
>>
karate.UseCases.LicensesCommonMethods
238
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
700
* def getDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
709
Given path '/internalapi/api/licensing/app/static/applicantinfo/save/'+appId
0
710
And header Content-Type = 'application/json; charset=utf-8'
0
712
* def autoFirstName = firstName + getDate()
0
713
* def legalName = autoFirstName + lastName
0
714
And header Accept = 'application/json; text/plain;*/*'
0
715
And header authorization = 'Bearer ' + strToken
0
716
And request {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":'#(indOrgCode)',"corporateStructure":'#(CorporateStructureDropDownCode)',"firstName":'#(autoFirstName)',"lastName":'#(lastName)',"middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":'#(legalName)',"id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":'#(IndOrgSelectionDropDown)',"corporateStructureText":'#(CorporateStructureDropDown)',"isIndividual":'#(isIndStatus)'},"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"2","phoneTypeText":"Office","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}}
0
717
When method post
235
19:25:23.276 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/applicantinfo/save/13863 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2167 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":1,"corporateStructure":1,"firstName":"Automation20221115192523","lastName":"Automation","middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":"Automation20221115192523Automation","id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":"Individual","corporateStructureText":"Individual","isIndividual":true},"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"2","phoneTypeText":"Office","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}} 19:25:23.510 response time in milliseconds: 234 1 < 200 1 < Content-Length: 2187 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:20 GMT {"businessInfo":{"id":0,"website":null,"isLicensed":true,"isAssociated":false,"businessEntity":{"id":0,"individualOrganization":"1","corporateStructure":1,"isEmployeeForSoleProprietor":null,"firstName":"Automation20221115192523","lastName":"Automation","middleName":null,"ssn":"","fein":"","legalName":"Automation20221115192523Automation","suffix":"1","corporateStructureText":"Individual","individualOrganizationText":"Individual","isIndividual":true},"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":0,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":0,"phoneType":3,"countryCode":"+91","phone":"999-999-9999","phoneExtension":"1234"}]}},"premisesInfo":{"id":0,"dba":null,"countyId":0,"countyName":null,"isDbaSearched":null,"isPremisesRequired":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":0,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":0,"phoneType":2,"countryCode":"+91","phone":"999-999-9999","phoneExtension":"1234"}]}},"applicantDetail":{"id":0,"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"isPhysicalChange":null,"applicantStatement":{"id":0,"nameOfApplicant":null,"title":null,"signature":null,"date":null}}}
718
Then status 200
0
831
* call read('LicensesCommonMethods.feature@FillAndSaveRepresentativePage') {}
611
>>
karate.UseCases.LicensesCommonMethods
160
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Representative *********************
790
Given path '/internalapi/api/licensing/app/static/rep/save/'+appId
0
791
And header authorization = 'Bearer ' + strToken
0
792
And request {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":'#(CountyName)',"city":'#(CityName)',"zipCode":"10011","country":"United States (US)","stateName":'#(CityName)',"countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""}
0
793
When method post
158
19:25:23.960 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/rep/save/13863 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 897 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":"New York","city":"New York","zipCode":"10011","country":"United States (US)","stateName":"New York","countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""} 19:25:24.117 response time in milliseconds: 157 1 < 200 1 < Content-Length: 4 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:20 GMT true
794
Then status 200
0
795
And def serverResponse = response
0
832
* call read('RenewalCommonMethods.feature@SaveAssociatedPrincipal') {}
579
>>
karate.UseCases.RenewalCommonMethods
374
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
1
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
464
Given path '/internalapi/api/licensing/app/static/principal/'+appId
0
466
And header Content-Type = 'application/json; charset=utf-8'
0
467
And header Accept = 'application/json; text/plain;*/*'
0
468
And header authorization = 'Bearer ' + strToken
0
469
And request {}
0
470
When method get
193
19:25:24.326 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/13863 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:25:24.518 response time in milliseconds: 192 1 < 200 1 < Content-Length: 1388 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:20 GMT {"entities":[],"principals":[{"principalId":3285,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":true,"isFingerprintsApproved":true,"percentageOfOwners":20.0,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","entities":null,"numberOfShares":"","isSignature":false,"isRemove":false,"date":"2022-11-15T00:00:00","convictedOfCrime":"1","title":"15","isLicensed":true,"isAssociated":true,"person":{"personId":5577,"firstName":"Automation20221115192445","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T00:00:00","serialNo":0,"age":0,"choosedEntity":[]},"address":{"addressId":29344,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25256,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
471
Then status 200
0
472
* def personResponse = response
0
473
* def principalId = personResponse.principals[0].principalId
0
474
* def personId = personResponse.principals[0].person.personId
0
475
* def licFirstName = personResponse.principals[0].person.firstName
0
476
* def licLastName = personResponse.principals[0].person.lastName
0
477
* def licCommID = personResponse.principals[0].communication.id
0
478
* def licEmailID = personResponse.principals[0].communication.email
0
479
* def licAddressId = personResponse.principals[0].address.addressId
0
480
Given path '/internalapi/api/licensing/app/static/principal/save/'+appId
0
482
And header Content-Type = 'application/json; charset=utf-8'
0
483
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
492
* def prncipalName = 'AutoRenewal'+getDate1()
1
494
And header Accept = 'application/json; text/plain;*/*'
0
495
And header authorization = 'Bearer ' + strToken
0
498
And request {"entities":[],"principals":[{"principalId":'#(principalId)',"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":true,\"isNewPrincipal\":false}","entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":'#(personId)',"firstName":'#(licFirstName)',"middleName":"","lastName":'#(licLastName)',"suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":null},"address":{"addressId":'#(licAddressId)',"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":'#(licCommID)',"email":'#(licEmailID)',"confirmEmail":'#(licEmailID)',"phones":[]}},{"principalId":0,"convictedOfCrime":"","percentageOfOwners":"","isFingerprintRequired":"","isFingerprintsApproved":"","title":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"Test Address1","addressLine2":"","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":'#(licEmailID)',"confirmEmail":'#(licEmailID)'},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
0
499
When method post
177
19:25:24.521 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/save/13863 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 2220 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"entities":[],"principals":[{"principalId":3285,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":true,\"isNewPrincipal\":false}","entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":5577,"firstName":"Automation20221115192445","middleName":"","lastName":"AutoLastName","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":null},"address":{"addressId":29344,"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25256,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}},{"principalId":0,"convictedOfCrime":"","percentageOfOwners":"","isFingerprintRequired":"","isFingerprintsApproved":"","title":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"Test Address1","addressLine2":"","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":"automation@svam.com","confirmEmail":"automation@svam.com"},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]} 19:25:24.697 response time in milliseconds: 176 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:55:22 GMT 2 < Content-Length: 2326 {"entities":[],"principals":[{"principalId":3285,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":null,"entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":5577,"firstName":"Automation20221115192445","middleName":"","lastName":"AutoLastName","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":[]},"address":{"addressId":29344,"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25256,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}},{"principalId":3286,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":null,"entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":[]},"address":{"addressId":0,"appId":null,"addressLine1":"Test Address1","addressLine2":"","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":0,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
500
Then status 200
0
833
* call read('RenewalCommonMethods.feature@Fee_Check') {}
509
>>
karate.UseCases.RenewalCommonMethods
266
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
0
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
0
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
504
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
505
* def totalFees = licenseFees + fillingFees
0
506
And print totalFees
0
19:25:24.942 [print] 1060.0
507
And header Content-Type = 'application/json; charset=utf-8'
0
508
And header Accept = 'application/json; text/plain;*/*'
0
509
And header authorization = 'Bearer ' + strToken
0
510
And request {}
0
511
When method get
264
19:25:24.942 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13863 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:25:25.205 response time in milliseconds: 263 1 < 200 1 < Content-Length: 655 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:22 GMT [{"licenseName":"Restaurant - Beer","applicationId":"RE-22-106368-01","applicationTypeId":2,"appFeesId":0,"appId":13863,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":30.00,"totalFees":0.0,"filingFees":0.0,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
512
Then status 200
0
513
And def serverResponse = response
0
514
* def licTerm = serverResponse[0].term
0
515
* def licFees = serverResponse[0].licensingFees+''
0
516
* def licTermDesc = serverResponse[0].termDesc
0
517
* def licFeesRefId = serverResponse[0].feesRefId
0
519
* def licAncillaryFees = serverResponse[0].ancillaryFees+''
0
520
* def licfilingFees = serverResponse[0].filingFees+''
0
521
* def licInitialFees = serverResponse[0].initialFees
0
522
* def licRenewalFees = serverResponse[0].renewalFees
0
834
* match licRenewalFees == 30
0
835
* def totalFees = 960+30+0
0
836
And print totalFees
0
19:25:25.212 [print] 990.0
837
* call read('RenewalCommonMethods.feature@RenewalLicFillingFeeRefund') {amount:40000}
1842
>>
karate.UseCases.RenewalCommonMethods
1659
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
0
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
995
Given path '/internalapi/api/notification/SaveNotification'
0
997
And header Content-Type = 'application/json; charset=utf-8'
0
998
And header Accept = 'application/json; text/plain;*/*'
0
999
And header authorization = 'Bearer ' + strToken
0
1000
And request {"applicant":{"communicationId":0,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19567,"email":"sbandi@svam.com","appId":'#(appId)',"emailContactTypeId":2,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}
0
# {"applicant":{"communicationId":0 ,"email":"automation@svam.com","appId":5870,"emailContactTypeId":1,"isChecked":true,"roleId":3 ,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19567,"email":"sbandi@svam.com","appId":5870,"emailContactTypeId":2,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":5870,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":5870,"createdBy":"Tarun Gupta"}
# {"applicant":{"communicationId":19579,"email":"automation@svam.com","appId":5874,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19581,"email":"sbandi@svam.com","appId":5874,"emailContactTypeId":2,"isChecked":true,"roleId":0,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":5874,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":5874,"createdBy":"Tarun Gupta"}
1003
When method post
161
19:25:25.391 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/notification/SaveNotification 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2020 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"applicant":{"communicationId":0,"email":"automation@svam.com","appId":13863,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19567,"email":"sbandi@svam.com","appId":13863,"emailContactTypeId":2,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13863,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13863,"createdBy":"Tarun Gupta"} 19:25:25.552 response time in milliseconds: 161 1 < 200 1 < Content-Length: 5 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:22 GMT false
1004
Then status 200
0
1005
And print response
0
19:25:25.552 [print] false
1007
* def overPaid = 40000 - totalFees
0
1009
Given path 'internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
1010
And header Content-Type = 'application/json; charset=utf-8'
0
1011
* def futureDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
1022
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1031
* def date = getDate2()
0
1032
* def futureDate = futureDateFunc()
1
1033
And header Accept = 'application/json; text/plain;*/*'
0
1034
And header authorization = 'Bearer ' + strToken
0
1036
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":40000}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":2,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":'#(renewalFees1)',"totalFees":'#(totalFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(overPaid)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000,"term":'#(licTerm)',"termDesc":'#(licTermDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}],"isFromReturnedCheck":false,"isBondRequired":true,"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":0,"email":null,"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":0,"email":null,"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
0
# {"checks":[{"appId":5929 ,"slaintakeDate":"2022-09-,"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-09-,"amount":40000}],"appFees":{"appFees":[{"licenseName":"Wholesale Wine ,"applicationId":"RE-22-106140-05" ,"applicationTypeId":2,"appFeesId":0,"appId":5929 ,"feesRefId":5993 ,"initialFees":0,"licensingFees":"2400.00" ,"amendmentFees":"0.00","renewalFees":"100.00" ,"totalFees":"3460.00" ,"filingFees":"0.00" ,"ancillaryFees":"960.0,"isFeesWaived":false,"underPaymentAmount":3460 ,"amountReceived":"0.00","waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000,"term":3 ,"termDesc":"3 Year (s)" ,"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}],"isFromReturnedCheck":false,"isBondRequired":true,"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-10-02T05:3,"emailNotificationDetail":{"applicant":{"communicationId":0,"email":null,"appId":5929 ,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":5929 ,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":5929 ,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":0,"email":null,"appId":5929 ,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":5929 ,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":5929 ,"createdBy":"Tarun Gupta"},"taskId":null}
1038
When method post
229
19:25:25.554 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13863/false 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 5091 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13863,"slaintakeDate":"2022-11-15T19:25:25.553Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:25:25.553Z","amount":40000}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"RE-22-106368-01","applicationTypeId":2,"appFeesId":0,"appId":13863,"feesRefId":6039,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"30","totalFees":990,"filingFees":"0","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":39010,"amountReceived":"0.00","waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}],"isFromReturnedCheck":false,"isBondRequired":true,"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-11-22T19:25:25.389Z","emailNotificationDetail":{"applicant":{"communicationId":0,"email":null,"appId":13863,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13863,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13863,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":0,"email":null,"appId":13863,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13863,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13863,"createdBy":"Tarun Gupta"},"taskId":null} 19:25:25.783 response time in milliseconds: 229 2 < 200 2 < Content-Length: 4 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:55:23 GMT true
1039
Then status 200
0
1041
Given path 'internalapi/api/licensing/fees/check-payments/get/'+appId
0
1042
And header authorization = 'Bearer ' + strToken
0
1043
And request {}
0
1044
When method get
162
19:25:25.784 request: 3 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/check-payments/get/13863 3 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 3 > Content-Type: application/json; charset=UTF-8 3 > Content-Length: 2 3 > Host: slaleapqaapi.svam.com 3 > Connection: Keep-Alive 3 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 3 > Accept-Encoding: gzip,deflate {} 19:25:25.944 response time in milliseconds: 160 3 < 200 3 < Content-Type: application/json; charset=utf-8 3 < Server: Microsoft-IIS/10.0 3 < Strict-Transport-Security: max-age=2592000 3 < X-Powered-By: ASP.NET 3 < Date: Tue, 15 Nov 2022 13:55:23 GMT 3 < Content-Length: 443 [{"checkDetailId":2346,"appId":13863,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T00:00:00","slaintakeDate":"2022-11-15T00:00:00","amount":40000.0000,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T08:55:23.107","modifiedBy":null,"modifiedDate":null}]
1045
Then status 200
0
1046
And def checkDetailId = response[0].checkDetailId
0
1047
And print checkDetailId
0
19:25:25.945 [print] 2346
1048
* def amount1 = response[0].amount
1
1049
* def underpaidAmount = totalFees-amount
0
# ********* SAVE Application Details To Save *********************
1051
Given path '/internalapi/api/licensing/app/save'
0
1052
And header authorization = 'Bearer ' + strToken
0
1053
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":'#(appId)',"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
1
1054
When method post
367
19:25:25.950 request: 4 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 4 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 4 > Content-Type: application/json; charset=UTF-8 4 > Content-Length: 30720 4 > Host: slaleapqaapi.svam.com 4 > Connection: Keep-Alive 4 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 4 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13863,"formID":1167,"applicationID":"RE-22-106368-01","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":13863,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:25:26.315 response time in milliseconds: 365 4 < 200 4 < Content-Length: 49 4 < Content-Type: application/json; charset=utf-8 4 < Server: Microsoft-IIS/10.0 4 < Strict-Transport-Security: max-age=2592000 4 < X-Powered-By: ASP.NET 4 < Date: Tue, 15 Nov 2022 13:55:23 GMT {"appId":13863,"applicationId":"RE-22-106368-01"}
1055
Then status 200
0
# ********* Save PAYMENT *********************
1060
Given path '/internalapi/api/licensing/fees/details/save/'+appId +'/false'
0
1061
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1072
* def slaDate = licFeesDate()
1
1073
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1085
* def slaaDate = licDate()
0
1086
* def licInitialFees1 = licInitialFees+''
0
1087
And print licInitialFees1
0
19:25:26.317 [print] 0
1088
* def renewalFees1 = renewalFees+''
0
1089
And print renewalFees1
0
19:25:26.317 [print] 30
1090
* def totalFees1 = totalFees+''
0
1092
And print totalFees1
0
19:25:26.317 [print] 990
1093
* def licAncillaryFees1 = licAncillaryFees+''
0
1094
* def licfilingFees1 = licfilingFees+''
0
1095
And header authorization = 'Bearer ' + strToken
0
1096
And request {"checks":[{"checkDetailId":'#(checkDetailId)',"appId":'#(appId)',"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":'#(date)',"slaintakeDate":'#(date)',"amount":40000,"appliedTo":null,"amountUsed":'#(totalFees)',"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":'#(date)',"modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":'#(overPaid)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":2,"appFeesId":'#(licFeesRefId)',"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":'#(renewalFees1)',"totalFees":'#(totalFees)',"filingFees":'#(licfilingFees1)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(-overPaid)',"amountReceived":"40000.00","waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000,"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":'#(appId)',"checkDetailId":'#(checkDetailId)',"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":"40000.00","amount":0}],"lateFee":0,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}],"isFromReturnedCheck":false,"isBondRequired":false,"bondDetails":[{"bondDetailId":0,"bondNo":"1","appId":5874,"companyName":"ACSTAR INSURANCE COMPANY","address1":"","address2":"233 MAIN STREET ","city":"NEW BRITAIN ","state":"CT","zipCode":"","phone":"123","email":"","isActive":false,"createdBy":"","createdDate":null,"modifiedBy":"","modifiedDate":null,"amount":1000,"address":"P O BOX 2350 ","zip":"06050","emailAddress":"email@email.com","expirationDate":2090}],"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":0,"email":null,"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":0,"email":null,"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
22
#{"checks":[{"checkDetailId":1703,"appId":5929,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-09-25T00:00:00.000Z","slaintakeDate":"2022-09-25T00:00:00.000Z","amount":40000,"appliedTo":null,"amountUsed":3460,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-09-25T09:22:59.457","modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":36540}],"appFees":{"appFees":[{"licenseName":"Wholesale Wine - Wine","applicationId":"RE-22-106140-05","applicationTypeId":2,"appFeesId":4049,"appId":5929,"feesRefId":5993,"initialFees":0,"licensingFees":"2400.00","amendmentFees":"0.00","renewalFees":"100.00","totalFees":"3460.00","filingFees":"0.00","ancillaryFees":"960.00","isFeesWaived":false,"underPaymentAmount":-36540,"amountReceived":"40000.00","waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":10000,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":5929,"checkDetailId":1703,"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":"40000.00","amount":0}],"lateFee":0,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}],"isFromReturnedCheck":false,"isBondRequired":false,"bondDetails":[{"bondDetailId":0,"bondNo":"1","appId":5929,"companyName":"ACSTAR INSURANCE COMPANY","address1":"","address2":"233 MAIN STREET ","city":"NEW BRITAIN ","state":"CT","zipCode":"","phone":"123","email":"","isActive":false,"createdBy":"","createdDate":null,"modifiedBy":"","modifiedDate":null,"amount":10000,"address":"P O BOX 2350 ","zip":"06050","emailAddress":"email@email.com","expirationDate":2090}],"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":"1970-01-01T11:00:00.000Z","emailNotificationDetail":{"applicant":{"communicationId":0,"email":null,"appId":5929,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":5929,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":5929,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":0,"email":null,"appId":5929,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":5929,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":5929,"createdBy":"Tarun Gupta"},"taskId":null}
1098
When method post
228
19:25:26.340 request: 5 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13863/false 5 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 5 > Content-Type: application/json; charset=UTF-8 5 > Content-Length: 5931 5 > Host: slaleapqaapi.svam.com 5 > Connection: Keep-Alive 5 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 5 > Accept-Encoding: gzip,deflate {"checks":[{"checkDetailId":2346,"appId":13863,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T19:25:25.553Z","slaintakeDate":"2022-11-15T19:25:25.553Z","amount":40000,"appliedTo":null,"amountUsed":990,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T19:25:25.553Z","modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":39010}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"RE-22-106368-01","applicationTypeId":2,"appFeesId":6039,"appId":13863,"feesRefId":6039,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"30","totalFees":990,"filingFees":"0","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":-39010,"amountReceived":"40000.00","waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":13863,"checkDetailId":2346,"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":"40000.00","amount":0}],"lateFee":0,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}],"isFromReturnedCheck":false,"isBondRequired":false,"bondDetails":[{"bondDetailId":0,"bondNo":"1","appId":5874,"companyName":"ACSTAR INSURANCE COMPANY","address1":"","address2":"233 MAIN STREET ","city":"NEW BRITAIN ","state":"CT","zipCode":"","phone":"123","email":"","isActive":false,"createdBy":"","createdDate":null,"modifiedBy":"","modifiedDate":null,"amount":1000,"address":"P O BOX 2350 ","zip":"06050","emailAddress":"email@email.com","expirationDate":2090}],"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":"2022-11-22T19:25:25.389Z","emailNotificationDetail":{"applicant":{"communicationId":0,"email":null,"appId":13863,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13863,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13863,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":0,"email":null,"appId":13863,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13863,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13863,"createdBy":"Tarun Gupta"},"taskId":null} 19:25:26.568 response time in milliseconds: 228 5 < 200 5 < Content-Length: 4 5 < Content-Type: application/json; charset=utf-8 5 < Server: Microsoft-IIS/10.0 5 < Strict-Transport-Security: max-age=2592000 5 < X-Powered-By: ASP.NET 5 < Date: Tue, 15 Nov 2022 13:55:23 GMT true
1099
Then status 200
0
1100
And print response
0
19:25:26.568 [print] true
# ********* SAVE Application Details To Save *********************
1105
Given path '/internalapi/api/licensing/app/save'
0
1106
And header authorization = 'Bearer ' + strToken
0
1107
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":'#(appId)',"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
1
1108
When method post
269
19:25:26.572 request: 6 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 6 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 6 > Content-Type: application/json; charset=UTF-8 6 > Content-Length: 30720 6 > Host: slaleapqaapi.svam.com 6 > Connection: Keep-Alive 6 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 6 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13863,"formID":1167,"applicationID":"RE-22-106368-01","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":13863,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:25:26.839 response time in milliseconds: 267 6 < 200 6 < Content-Length: 49 6 < Content-Type: application/json; charset=utf-8 6 < Server: Microsoft-IIS/10.0 6 < Strict-Transport-Security: max-age=2592000 6 < X-Powered-By: ASP.NET 6 < Date: Tue, 15 Nov 2022 13:55:24 GMT {"appId":13863,"applicationId":"RE-22-106368-01"}
1109
Then status 200
0
1110
And def serverResponse = response
0
1112
Given path '/internalapi/api/notification/SaveNotification'
0
1114
And header Content-Type = 'application/json; charset=utf-8'
0
1115
And header Accept = 'application/json; text/plain;*/*'
0
1116
And header authorization = 'Bearer ' + strToken
0
1117
And request {"applicant":{"communicationId":0,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19581,"email":"sbandi@svam.com","appId":'#(appId)',"emailContactTypeId":2,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":true,"appId":'#(appId)',"createdBy":"Tarun Gupta","notificationTypeId":96}
0
# {"applicant":{"communicationId":0,"email":"automation@svam.com","appId":5892,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19644,"email":"sbandi@svam.com","appId":5892,"emailContactTypeId":2,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":5892,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":true,"appId":5892,"createdBy":"Tarun Gupta","notificationTypeId":96}
1119
When method post
209
19:25:26.841 request: 7 > POST https://slaleapqaapi.svam.com/internalapi/api/notification/SaveNotification 7 > Content-Type: application/json; charset=utf-8 7 > Accept: application/json; text/plain;*/* 7 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 7 > Content-Length: 2043 7 > Host: slaleapqaapi.svam.com 7 > Connection: Keep-Alive 7 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 7 > Accept-Encoding: gzip,deflate {"applicant":{"communicationId":0,"email":"automation@svam.com","appId":13863,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":19581,"email":"sbandi@svam.com","appId":13863,"emailContactTypeId":2,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13863,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":true,"appId":13863,"createdBy":"Tarun Gupta","notificationTypeId":96} 19:25:27.048 response time in milliseconds: 207 7 < 200 7 < Content-Type: application/json; charset=utf-8 7 < Server: Microsoft-IIS/10.0 7 < Strict-Transport-Security: max-age=2592000 7 < X-Powered-By: ASP.NET 7 < Date: Tue, 15 Nov 2022 13:55:24 GMT 7 < Content-Length: 5 false
1120
Then status 200
0
1121
And print response
0
19:25:27.049 [print] false
840
* call read('LicensesCommonMethods.feature@SubmitLicenseAndValidateLicStatus') {expStatus:'Awaiting Review'}
10462
>>
karate.UseCases.LicensesCommonMethods
9014
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Application SUBMIT *********************
1099
Given path '/internalapi/api/licensing/app/submit'
0
1100
And header authorization = 'Bearer ' + strToken
0
1101
And request {"appId":'#(appId)',"wfType":null}
0
1102
When method post
259
19:25:28.462 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/submit 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 29 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"appId":13863,"wfType":null} 19:25:28.720 response time in milliseconds: 257 1 < 200 1 < Content-Length: 121 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:26 GMT {"success":true,"submittedApps":[{"success":true,"taskId":0,"appId":13863,"applicationId":"RE-22-106368-01","error":""}]}
1103
Then status 200
0
1104
And def serverResponse = response
0
1105
And match response.success == true
0
1106
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
8750
>>
karate.UseCases.LicensesCommonMethods
6533
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
1
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
1
1195
* def dbSts = db.cleanHeap()
6298
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
186
19:25:37.215 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13863 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:25:37.396 response time in milliseconds: 181 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:34 GMT 1 < Content-Length: 213 {"applicationId":"RE-22-106368-01","submitDate":"2022-11-15T08:55:25.967","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":true}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:25:37.397 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
43
Scenario: [8.1:934] TC017_SLA_REN_Intake_Fees_Waived_Fee
ms: 59311
>>
Background:
3
* url BaseURL
0
19:25:37.946 karate.env system property was: svamqa
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* callonce read('LoginDetails.feature') { strToken:'#(strToken)'}
99
8
* def amendmentTypeId = 1
0
9
* def waitFunc =
0
function(timeinMiliSeconds) { // load java type into js engine var Thread = Java.type('java.lang.Thread'); Thread.sleep(timeinMiliSeconds*1000); }
17
* def DueDate =
0
function(numberOfDays){ var date = new Date(); date.setDate(date.getDate() + (numberOfDays)); return date.toString() }
25
* def DueDateCheck = DueDate(7)
3
27
* def getcorporateStructureCodeFunc =
0
function(value){ if (value === 'Individual'){ return 1; } else { return 2; } }
38
* def getStatusIndOrgStatus =
0
function(value){ if (value === 'Individual'){ return true; } else { return false; } }
49
* def getIndORgCodeFunc =
0
function(value1, value2){ if (value1 == 1 && value2 == 'Individual'){ return 1; } else if (value1 == 1 && value2 == 'Sole Propretior'){ return 2; } else if (value1 == 2 && value2 == 'Individual'){ return 1; } else if (value1 == 2 && value2 == 'Limited Liability Company'){ return 2; }else if (value1 == 2 && value2 == 'Corporation'){ return 3; }else if (value1 == 2 && value2 == 'Limited Liability Partnership'){ return 4; }else if (value1 == 2 && value2 == 'Limited Partnership'){ return 5; }else if (value1 == 2 && value2 == 'Partnership'){ return 6; }else if (value1 == 2 && value2 == 'Government'){ return 7; }else if (value1 == 2 && value2 == 'Sole Propretior'){ return 8; }else if (value1 == 2 && value2 == 'Trust'){ return 9; }else if (value1 == 2 && value2 == 'Estate'){ return 10; } else { return 1; } }
87
* def getFundDueDateMMYYDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
99
* def mmyydateFundDueDate = getFundDueDateMMYYDate(7)
1
100
And print mmyydateFundDueDate
0
19:25:38.051 [print] 11/22/2022
102
* def getAmendmentTypeIdFunc =
0
function(amendmentType){ if (amendmentType == 'ABC Officer'){ return 1; } else if (amendmentType == 'Additional Bar'){ return 2; } else if (amendmentType == 'Alteration'){ return 3; } else if (amendmentType == 'Alteration with Additional Bar'){ return 3; } }
121
* def waitFunc =
0
function(timeinMiliSeconds) { // load java type into js engine var Thread = Java.type('java.lang.Thread'); Thread.sleep(timeinMiliSeconds*1000); }
129
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
140
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
151
* def getMMMMDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MMMM dd, yyyy"); var date = new java.util.Date(); return sdf.format(date); }
161
* def mmmmdate = getMMMMDate()
0
163
* def getMMYYDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); return sdf.format(date); }
173
* def mmyydate = getMMYYDate()
0
175
* def getFundDueDateMMYYDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MM/dd/yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
187
* def mmyydateFundDueDate = getFundDueDateMMYYDate(7)
1
189
* def dateFnc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date( date.getTime() - java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
199
* def dateWithMonthsNameFnc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("MMMM dd, yyyy"); var date = new java.util.Date(); var dayAfter = new java.util.Date( date.getTime()); return sdf.format(dayAfter); }
208
* def dateWithMonthsName = dateWithMonthsNameFnc()
0
209
And print dateWithMonthsName
0
19:25:38.053 [print] November 15, 2022
854
* def IndOrgSelectionDropDown = 'Individual'
0
855
* def indOrgCode = getIndORgCodeFunc(IndOrgSelectionDropDown)
0
856
And print indOrgCode
0
19:25:38.053 [print] 1
857
* def isIndStatus = getStatusIndOrgStatus(IndOrgSelectionDropDown)
0
858
* def CorporateStructureDropDown = 'Individual'
0
859
* def CorporateStructureDropDownCode = getIndORgCodeFunc(indOrgCode,CorporateStructureDropDown)
1
860
And print CorporateStructureDropDownCode
0
19:25:38.054 [print] 1
861
* def firstName = 'Automation'
0
862
* def lastName = 'Automation'
0
863
* def legalName = firstName+ ' '+lastName
0
864
* def Address1 = 'Address1'
0
865
* def Address2 = 'Address2'
0
866
* def CityName = 'New York'
0
867
* def zipCode = '12345'
0
868
* def postalCode = '1234'
0
869
* def countryName = 'United States (US)'
0
870
* def emailId = 'automation@svam.com'
0
871
* def convictedOfCrime = '1'
0
872
* def percentageOfOwners = '20'
0
873
* def isFingerprintRequired = true
0
874
* def isFingerprintsApproved = true
0
875
* def isSignature = true
0
877
* def convictedOfCrime = '1'
0
878
* def PhoneNumber = '999-999-9999'
0
879
* def PhoneExtn = 1234
0
880
* def countryCode = '+91'
0
881
* def stateCode = 40
0
883
* def mainLicensePermitTypeId = 40
0
884
* def termInYears = 3
0
885
* def termDesc = 3+' Year (s)'
0
886
* def licenseFees = 960
0
887
* def fillingFees = 100
0
888
* def licAncillaryFees = 0
0
889
* def renewalFees = 30+''
0
890
* string productName = 'RestaurantBeer'+''
0
892
* def CountyId = 1
0
893
* def CountyName = 'New York'
0
894
* def totalFees = licenseFees+fillingFees+licAncillaryFees
0
895
* def amountPaid = totalFees+''
0
896
* def splittedCityName = CityName.replaceAll(" ","")
1
898
* call read('LicensesCommonMethods.feature@IntakeLicensewithoutAssociatedLic') {}
6826
>>
karate.UseCases.LicensesCommonMethods
4057
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* App Intake *********************
290
* call read('LicensesCommonMethods.feature@GetCountyList') {}
3199
>>
karate.UseCases.LicensesCommonMethods
2008
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
1
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
117
Given path '/internalapi/api/reference'
0
118
* def dbSts = db.cleanHeap()
1839
119
And header authorization = 'Bearer ' + strToken
0
120
And header Content-Type = 'application/json;charset=utf-8'
0
121
And header Accept = 'text/plain'
0
# * def query = {name:countyzone&onlyActives:true}
123
And params {name:countyzone,onlyActives:true}
0
#And param onlyActives='true'
125
And request {}
0
126
When method get
163
19:25:43.827 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/reference?name=countyzone&onlyActives=true 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json;charset=utf-8 1 > Accept: text/plain 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:25:43.980 response time in milliseconds: 152 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:41 GMT 1 < Content-Length: 11712 {"values":[{"CountyId":1,"County":"New York","ShortName":"NEW","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T00:00:00","ModifiedBy":"esandoval","ModifiedDate":"2020-11-10T11:30:56.047"},{"CountyId":2,"County":"Kings","ShortName":"KING","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":3,"County":"Bronx","ShortName":"BRON","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":4,"County":"Queens","ShortName":"QUEE","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":5,"County":"Richmond","ShortName":"RICH","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":6,"County":"Nassau","ShortName":"NASS","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":7,"County":"Suffolk","ShortName":"SUFF","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":8,"County":"Westchester","ShortName":"WEST","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":9,"County":"Orange","ShortName":"ORAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":10,"County":"Putnam","ShortName":"PUTN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":11,"County":"Rockland","ShortName":"ROCK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":12,"County":"Albany","ShortName":"ALBA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":13,"County":"Clinton","ShortName":"CLIN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":14,"County":"Columbia","ShortName":"COLU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":15,"County":"Dutchess","ShortName":"DUTC","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":16,"County":"Essex","ShortName":"ESSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":17,"County":"Franklin","ShortName":"FRAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":18,"County":"Fulton","ShortName":"FULT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":19,"County":"Greene","ShortName":"GREE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":20,"County":"Hamilton","ShortName":"HAMI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":21,"County":"Montgomery","ShortName":"MONT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":22,"County":"Rensselaer","ShortName":"RENS","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":23,"County":"Saratoga","ShortName":"SARA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":24,"County":"Schenectady","ShortName":"SCHE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":25,"County":"Schoharie","ShortName":"SCHO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":26,"County":"Sullivan","ShortName":"SULL","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":27,"County":"Ulster","ShortName":"ULST","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":28,"County":"Warren","ShortName":"WARR","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":29,"County":"Washington","ShortName":"WASH","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":30,"County":"Allegany","ShortName":"ALLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":31,"County":"Cattaraugus","ShortName":"CATT","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":32,"County":"Chautauqua","ShortName":"CHAU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":33,"County":"Chemung","ShortName":"CHEM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":34,"County":"Erie","ShortName":"ERIE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":35,"County":"Genesee","ShortName":"GENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":36,"County":"Livingston","ShortName":"LIVI","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":37,"County":"Monroe","ShortName":"MONR","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":38,"County":"Niagara","ShortName":"NIAG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":39,"County":"Ontario","ShortName":"ONTA","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":40,"County":"Orleans","ShortName":"ORLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":41,"County":"Schuyler","ShortName":"SCHU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":42,"County":"Seneca","ShortName":"SENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":43,"County":"Steuben","ShortName":"STEU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":44,"County":"Wayne","ShortName":"WAYN","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":45,"County":"Wyoming","ShortName":"WYOM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":46,"County":"Yates","ShortName":"YATE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":47,"County":"Broome","ShortName":"BROO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":48,"County":"Chenango","ShortName":"CHEN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":49,"County":"Cortland","ShortName":"CORT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":50,"County":"Delaware","ShortName":"DELA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":51,"County":"Herkimer","ShortName":"HERK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":52,"County":"Jefferson","ShortName":"JEFF","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":53,"County":"Lewis","ShortName":"LEWI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":54,"County":"Madison","ShortName":"MADI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":55,"County":"Oneida","ShortName":"ONEI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":56,"County":"Onondaga","ShortName":"ONON","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":57,"County":"Oswego","ShortName":"OSWE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":58,"County":"Otsego","ShortName":"OTSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":59,"County":"St. Lawrence","ShortName":"ST L","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":60,"County":"Cayuga","ShortName":"CAYU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":61,"County":"Tioga","ShortName":"TIOG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":62,"County":"Tompkins","ShortName":"TOMP","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.6","ModifiedBy":null,"ModifiedDate":null}],"name":"countyzone","schema":[{"columnName":"CountyId","dataType":"int","maxLenght":null,"isRequired":true},{"columnName":"County","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ShortName","dataType":"nvarchar","maxLenght":10,"isRequired":false},{"columnName":"ZoneNo","dataType":"int","maxLenght":null,"isRequired":false},{"columnName":"IsActive","dataType":"bit","maxLenght":null,"isRequired":false},{"columnName":"CreatedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"CreatedDate","dataType":"datetime","maxLenght":null,"isRequired":false},{"columnName":"ModifiedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ModifiedDate","dataType":"datetime","maxLenght":null,"isRequired":false}]}
127
* configure continueOnStepFailure = true
0
128
Then status 200
0
129
And def values = response.values
0
130
* configure continueOnStepFailure = true
0
291
* def countyData = karate.jsonPath(values, "$[?(@.CountyId == '" + CountyId + "')]")
1
292
* def countyZone = countyData[0].ZoneNo
0
293
And print countyZone
1
19:25:43.999 [print] 1
294
Given path '/internalapi/api/licensing/selectapptype/savenewlicenseapp'
0
295
* def dbSts = db.cleanHeap()
260
296
And header authorization = 'Bearer ' + strToken
0
297
And header Content-Type = 'application/json; charset=utf-8'
0
298
And header Accept = 'application/json; text/plain;*/*'
0
#* def CountysId = <countyIds>
# And print CountysId
#* string CountysName = <countynames>
# And print CountysName
#* def mainLicensePermitTypeId = <LicensePermitTypeId>
# And print mainLicensePermitTypeId
#* string ProductType = <ProductTypes>
#* string LicenseDescription = <LicDescription>
# And print ProductType
309
And request {"mainLicensePermitTypeId":'#(mainLicensePermitTypeId)',"newPermitTypeIds":[],"combinedCraftId":null,"masterFileId":null,"isApplicableForTempPermit":false,"isNotQualified":false,"isChainRestaurant":false,"addBarList":[],"countyId":'#(CountyId)',"isApplicantCurrentLicensed":false,"isExistingManufacturer":false,"selectedLicense":null,"isAssociatedTempPermit":false}
0
311
When method post
199
19:25:44.261 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/selectapptype/savenewlicenseapp 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 327 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"mainLicensePermitTypeId":40,"newPermitTypeIds":[],"combinedCraftId":null,"masterFileId":null,"isApplicableForTempPermit":false,"isNotQualified":false,"isChainRestaurant":false,"addBarList":[],"countyId":1,"isApplicantCurrentLicensed":false,"isExistingManufacturer":false,"selectedLicense":null,"isAssociatedTempPermit":false} 19:25:44.459 response time in milliseconds: 198 1 < 200 1 < Content-Length: 234 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:41 GMT [{"childAppId":null,"mainApplicationId":"NA-0111-22-119058","childApplicationId":null,"licensePermitTypeId":40,"description":"Restaurant-Beer","parentApplicationId":"NA-0111-22-119058","parentAppId":13864,"appId":13864,"formId":1165}]
312
* configure continueOnStepFailure = true
0
313
Then status 200
0
315
And def ApplicationId = response[0].mainApplicationId
0
316
And print ApplicationId
0
19:25:44.460 [print] NA-0111-22-119058
317
And match ApplicationId contains 'NA-'
0
319
* def currentYear = '-'+getYearFunc()+'-'+countyZone
1
320
And match ApplicationId contains currentYear
0
321
And def description = response[0].description
0
323
And def appId = response[0].appId
0
325
* def formId = response[0].formId
0
326
* def FormVersionId = response[0].FormVersionId
0
328
Given path '/internalapi/api/application/preview/'+appId
0
329
* def dbSts = db.cleanHeap()
233
330
And header authorization = 'Bearer ' + strToken
0
331
And header Content-Type = 'application/json; charset=utf-8'
0
332
And header Accept = 'application/json; text/plain;*/*'
0
333
And configure continueOnStepFailure = true
0
334
And request {}
0
335
When method get
158
19:25:44.695 request: 2 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13864 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > Content-Length: 2 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {} 19:25:44.853 response time in milliseconds: 158 2 < 200 2 < Content-Length: 185 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:55:41 GMT {"applicationId":"NA-0111-22-119058","submitDate":null,"licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Draft"},"isLicenseApplication":true,"isPreFilled":false}
336
* configure continueOnStepFailure = true
0
337
Then status 200
0
338
And def licStatus = response.appStatus.statusDescription
0
339
And print licStatus
0
19:25:44.854 [print] Draft
340
And match licStatus == 'Draft'
0
899
* def CountyName = "New York"
0
900
* call read('LicensesCommonMethods.feature@FillAndSaveApplicantInformationPage') {county:'#(CountyName)'}
722
>>
karate.UseCases.LicensesCommonMethods
183
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
700
* def getDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
709
Given path '/internalapi/api/licensing/app/static/applicantinfo/save/'+appId
0
710
And header Content-Type = 'application/json; charset=utf-8'
0
712
* def autoFirstName = firstName + getDate()
0
713
* def legalName = autoFirstName + lastName
0
714
And header Accept = 'application/json; text/plain;*/*'
0
715
And header authorization = 'Bearer ' + strToken
0
716
And request {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":'#(indOrgCode)',"corporateStructure":'#(CorporateStructureDropDownCode)',"firstName":'#(autoFirstName)',"lastName":'#(lastName)',"middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":'#(legalName)',"id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":'#(IndOrgSelectionDropDown)',"corporateStructureText":'#(CorporateStructureDropDown)',"isIndividual":'#(isIndStatus)'},"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"2","phoneTypeText":"Office","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}}
0
717
When method post
180
19:25:45.410 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/applicantinfo/save/13864 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2167 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":1,"corporateStructure":1,"firstName":"Automation20221115192545","lastName":"Automation","middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":"Automation20221115192545Automation","id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":"Individual","corporateStructureText":"Individual","isIndividual":true},"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"2","phoneTypeText":"Office","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}} 19:25:45.589 response time in milliseconds: 179 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:42 GMT 1 < Content-Length: 2191 {"businessInfo":{"id":0,"website":null,"isLicensed":false,"isAssociated":false,"businessEntity":{"id":3992,"individualOrganization":"1","corporateStructure":1,"isEmployeeForSoleProprietor":null,"firstName":"Automation20221115192545","lastName":"Automation","middleName":"AutoMidName","ssn":"","fein":"","legalName":"Automation20221115192545Automation","suffix":"1","corporateStructureText":"Individual","individualOrganizationText":"Individual","isIndividual":true},"address":{"addressId":29349,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"US","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"NY","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25261,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":7798,"phoneType":3,"countryCode":"91","phone":"999-999-9999","phoneExtension":"1234"}]}},"premisesInfo":{"id":13164,"dba":null,"countyId":1,"countyName":"New York","isDbaSearched":null,"isPremisesRequired":true,"licensePermitID":"","address":{"addressId":29350,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"US","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"NY","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25262,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":7799,"phoneType":2,"countryCode":"+91","phone":"999-999-9999","phoneExtension":"1234"}]}},"applicantDetail":{"id":9756,"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"isPhysicalChange":null,"applicantStatement":{"id":4297,"nameOfApplicant":null,"title":null,"signature":null,"date":null}}}
718
Then status 200
0
901
* call read('LicensesCommonMethods.feature@FillAndSavePrincipalPage') {}
737
>>
karate.UseCases.LicensesCommonMethods
225
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
745
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
754
Given path '/internalapi/api/licensing/app/static/principal/save/'+appId
0
755
And header Content-Type = 'application/json; charset=utf-8'
0
756
* def prncipalName = firstName + getDate1()
0
757
* def dt = licDate()
0
758
And header Accept = 'application/json; text/plain;*/*'
0
759
And header authorization = 'Bearer ' + strToken
0
760
And request {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":'#(convictedOfCrime)',"percentageOfOwners":'#(percentageOfOwners)',"isFingerprintRequired":'#(isFingerprintRequired)',"isFingerprintsApproved":'#(isFingerprintsApproved)',"title":"15","numberOfShares":"","isSignature":false,"date":'#(dt)',"address":{"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"stateId":'#(stateCode)',"county":'#(CountyName)',"city":"New York","zipCode":'#(zipCode)',"zip4":'#(postalCode)',"country":'#(countryName)',"stateName":'#(CityName)',"countryId":229,"zip":'#(zipCode)'},"person":{"personId":0,"firstName":'#(prncipalName)',"middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":'#(dt)',"age":"","choosedEntity":null,"ssnFormat":"","suffixText":"JR"},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":'#(emailId)',"confirmEmail":'#(emailId)'},"titleText":"Vice President","convictedOfCrimeText":"No","disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
0
# {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":"" ,"percentageOfOwners":"" ,"isFingerprintRequired":true ,"isFingerprintsApproved":true ,"title":"","dcjsFingerPrintStatus":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"","addressLine2":"","stateId":40,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"New York","countryId":229,"zip":""},"person":{"personId":0,"firstName":"XA","middleName":"","lastName":"sa","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":null,"confirmEmail":null},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
762
When method post
223
19:25:46.103 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/save/13864 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 1107 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"entities":[],"principals":[{"principalId":0,"convictedOfCrime":"1","percentageOfOwners":"20","isFingerprintRequired":true,"isFingerprintsApproved":true,"title":"15","numberOfShares":"","isSignature":false,"date":"2022-11-15T19:25:46.103Z","address":{"addressLine1":"Address1","addressLine2":"Address2","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation20221115192546","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T19:25:46.103Z","age":"","choosedEntity":null,"ssnFormat":"","suffixText":"JR"},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":"automation@svam.com","confirmEmail":"automation@svam.com"},"titleText":"Vice President","convictedOfCrimeText":"No","disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]} 19:25:46.326 response time in milliseconds: 223 1 < 200 1 < Content-Length: 1390 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:42 GMT {"entities":[],"principals":[{"principalId":3287,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":true,"isFingerprintsApproved":true,"percentageOfOwners":20.0,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","entities":null,"numberOfShares":"","isSignature":false,"isRemove":false,"date":"2022-11-15T00:00:00","convictedOfCrime":"1","title":"15","isLicensed":false,"isAssociated":false,"person":{"personId":5580,"firstName":"Automation20221115192546","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T00:00:00","serialNo":0,"age":0,"choosedEntity":[]},"address":{"addressId":29351,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25263,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
763
Then status 200
0
902
* call read('LicensesCommonMethods.feature@FillAndSaveRepresentativePage') {}
1358
>>
karate.UseCases.LicensesCommonMethods
173
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Representative *********************
790
Given path '/internalapi/api/licensing/app/static/rep/save/'+appId
0
791
And header authorization = 'Bearer ' + strToken
0
792
And request {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":'#(CountyName)',"city":'#(CityName)',"zipCode":"10011","country":"United States (US)","stateName":'#(CityName)',"countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""}
0
793
When method post
169
19:25:47.528 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/rep/save/13864 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 897 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":"New York","city":"New York","zipCode":"10011","country":"United States (US)","stateName":"New York","countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""} 19:25:47.695 response time in milliseconds: 167 1 < 200 1 < Content-Length: 4 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:45 GMT true
794
Then status 200
0
795
And def serverResponse = response
0
903
* call read('LicensesCommonMethods.feature@FillAndSaveMethodOfOperationPage') {}
2945
>>
karate.UseCases.LicensesCommonMethods
191
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
6389
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
6398
Given path '/internalapi/api/licensing/app/save'
0
6399
And header Content-Type = 'application/json; charset=utf-8'
0
6400
* def prncipalName = firstName + getDate1()
0
6401
* def dt = licDate()
0
6402
And header Accept = 'application/json; text/plain;*/*'
0
6403
And header authorization = 'Bearer ' + strToken
0
6404
And request {"isApproved":false,"appId":'#(appId)',"formID":1165,"applicationID":"","formName":"","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":1,"formCategory":{},"formCategoryId":1,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and Policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1993,"key":"","label":"Will the business employ a manager?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1994,"key":"","label":"If no, will the principals manage?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1995,"key":"","label":"If Premises is not a caterer establishment, will the premises periodically close to host private events?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1996,"key":"","label":"If Yes, How Frequently?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"Yes","fieldID":1997,"key":"","label":"Will the premises have music?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1998,"key":"","label":"If Live Music, Give Details","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1999,"key":"","label":"Will the premises use the service of an event promoter?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2000,"key":"","label":"Will the Premises Permit Dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2001,"key":"","label":"Will there be exotic dancing, including but not limited to topless entertainment, pole dancing and or lap dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2002,"key":"","label":"Will there be topless entertainment?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":16,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2003,"key":"","label":"Will Security Personnel be used at the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":17,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2004,"key":"","label":"How many?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":18,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2005,"key":"","label":"Provide your proprietary security guard employer unique Identification number assigned to the business by the NYS Department of State Division of Licensing Services or the name of the security company through which the security personnel will be hired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":19,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2006,"key":"","label":"Provide a detailed plan of supervision for the premises to be licensed. Clearly describe how you will maintain control and order over the licensed premises. How will you monitor alcohol sales and prevent sales to minors and sales to intoxicated persons? How will you handle unruly patrons, altercations, etc., to prevent the premises from becoming disorderly?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":20,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2007,"key":"","label":"Are all responses provided in the application consistent with the information provided to the municipality or community board within the standardized notice form for providing thirty day advance notice","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":21,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2008,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":22,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"4","fieldID":2051,"key":"","label":"If Yes, check all that apply","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2052,"key":"","label":"Who will be permitted to dance?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"Method_of_Operation","key":"0","label":"Method Of Operation","order":11,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isStatic":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"parentSection":"","subSections":[],"sectionFieldOrders":[],"address":{"addressLine1":"","addressLine2":"","stateId":null,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"","countryId":229}}],"formVersionId":1699,"version":25,"licenseDescription":"Restaurant-Beer","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"showAbcOfficer":false,"showCorpChange":false,"showEndorsement":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant_Information","Principal","Representative","Landlord_Identification","Personal_Questionnaire"],"showPQ":true,"showCC":false,"showManuOnPrem":false,"licPermitTypeId":40,"tabVisitied":{"Applicant Information":false,"Principal":false,"Representative":false,"Landlord Identification":false,"Personal Questionnaire":false}}
0
6406
When method post
188
19:25:50.451 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 12993 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13864,"formID":1165,"applicationID":"","formName":"","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":1,"formCategory":{},"formCategoryId":1,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and Policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1993,"key":"","label":"Will the business employ a manager?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1994,"key":"","label":"If no, will the principals manage?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1995,"key":"","label":"If Premises is not a caterer establishment, will the premises periodically close to host private events?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1996,"key":"","label":"If Yes, How Frequently?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"Yes","fieldID":1997,"key":"","label":"Will the premises have music?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1998,"key":"","label":"If Live Music, Give Details","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":1999,"key":"","label":"Will the premises use the service of an event promoter?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2000,"key":"","label":"Will the Premises Permit Dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2001,"key":"","label":"Will there be exotic dancing, including but not limited to topless entertainment, pole dancing and or lap dancing?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2002,"key":"","label":"Will there be topless entertainment?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":16,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2003,"key":"","label":"Will Security Personnel be used at the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":17,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2004,"key":"","label":"How many?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":18,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2005,"key":"","label":"Provide your proprietary security guard employer unique Identification number assigned to the business by the NYS Department of State Division of Licensing Services or the name of the security company through which the security personnel will be hired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":19,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2006,"key":"","label":"Provide a detailed plan of supervision for the premises to be licensed. Clearly describe how you will maintain control and order over the licensed premises. How will you monitor alcohol sales and prevent sales to minors and sales to intoxicated persons? How will you handle unruly patrons, altercations, etc., to prevent the premises from becoming disorderly?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":20,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"No","fieldID":2007,"key":"","label":"Are all responses provided in the application consistent with the information provided to the municipality or community board within the standardized notice form for providing thirty day advance notice","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":21,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2008,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":22,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"4","fieldID":2051,"key":"","label":"If Yes, check all that apply","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2052,"key":"","label":"Who will be permitted to dance?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"Method_of_Operation","key":"0","label":"Method Of Operation","order":11,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isStatic":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"parentSection":"","subSections":[],"sectionFieldOrders":[],"address":{"addressLine1":"","addressLine2":"","stateId":null,"county":"","city":"","zipCode":"","zip4":"","country":"United States (US)","stateName":"","countryId":229}}],"formVersionId":1699,"version":25,"licenseDescription":"Restaurant-Beer","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"showAbcOfficer":false,"showCorpChange":false,"showEndorsement":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant_Information","Principal","Representative","Landlord_Identification","Personal_Questionnaire"],"showPQ":true,"showCC":false,"showManuOnPrem":false,"licPermitTypeId":40,"tabVisitied":{"Applicant Information":false,"Principal":false,"Representative":false,"Landlord Identification":false,"Personal Questionnaire":false}} 19:25:50.637 response time in milliseconds: 186 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:47 GMT 1 < Content-Length: 51 {"appId":13864,"applicationId":"NA-0111-22-119058"}
6407
Then status 200
0
904
* call read('LicensesCommonMethods.feature@FeesValidation') {amount:'#(totalFees)'}
3345
>>
karate.UseCases.LicensesCommonMethods
2092
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
810
* def futureDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
820
* def futureDate = futureDateFunc()
2
822
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
832
* def date = getDate2()
1
834
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
835
And header Content-Type = 'application/json; charset=utf-8'
0
836
And header Accept = 'application/json; text/plain;*/*'
0
837
And header authorization = 'Bearer ' + strToken
0
838
And request {}
0
839
When method get
235
19:25:51.886 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13864 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:25:52.120 response time in milliseconds: 233 1 < 200 1 < Content-Length: 658 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:49 GMT [{"licenseName":"Restaurant - Beer","applicationId":"NA-0111-22-119058","applicationTypeId":1,"appFeesId":0,"appId":13864,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":0.0,"totalFees":0.0,"filingFees":100.00,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
840
Then status 200
0
841
And def serverResponse = response
0
842
* def licTerm = serverResponse[0].term
0
843
* def licFees = serverResponse[0].licensingFees+''
0
844
* def licTermDesc = serverResponse[0].termDesc
0
845
* def licFeesRefId = serverResponse[0].feesRefId
0
846
* def licAncillaryFees = serverResponse[0].ancillaryFees+''
1
847
* def licfilingFees = serverResponse[0].filingFees+''
0
848
* def licInitialFees = serverResponse[0].initialFees
1
849
* def bndFees = serverResponse[0].bondFee
0
850
* def isBondRequired = serverResponse[0].isBondRequired
0
851
And def totalFees = serverResponse[0].licensingFees+serverResponse[0].filingFees
0
852
And print totalFees
0
19:25:52.124 [print] 1060.0
855
Given path '/internalapi/api/notification/SaveNotification'
0
857
And header Content-Type = 'application/json; charset=utf-8'
0
858
And header Accept = 'application/json; text/plain;*/*'
0
859
And header authorization = 'Bearer ' + strToken
0
860
And request {"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}
0
861
When method post
166
19:25:52.127 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/notification/SaveNotification 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 2006 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13864,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13864,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13864,"createdBy":"Tarun Gupta"} 19:25:52.291 response time in milliseconds: 164 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:55:49 GMT 2 < Content-Length: 5 false
862
Then status 200
0
863
And print response
0
19:25:52.292 [print] false
# And header Content-Type = 'application/json; charset=utf-8'
869
Given path 'internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
871
And header Accept = 'application/json; text/plain;*/*'
0
872
And header authorization = 'Bearer ' + strToken
0
874
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":'#(amount)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":"0.00","totalFees":'#(totalFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(licTerm)',"termDesc":'#(licTermDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
4
875
When method post
225
19:25:52.300 request: 3 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13864/false 3 > Accept: application/json; text/plain;*/* 3 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 3 > Content-Type: application/json; charset=UTF-8 3 > Content-Length: 5071 3 > Host: slaleapqaapi.svam.com 3 > Connection: Keep-Alive 3 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 3 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13864,"slaintakeDate":"2022-11-15T19:25:51.885Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:25:51.885Z","amount":1060}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119058","applicationTypeId":1,"appFeesId":0,"appId":13864,"feesRefId":6039,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"0.00","totalFees":1060.0,"filingFees":"100","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":1060.0,"amountReceived":"0.00","waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-11-22T19:25:51.881Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13864,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13864,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13864,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13864,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13864,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13864,"createdBy":"Tarun Gupta"},"taskId":null} 19:25:52.522 response time in milliseconds: 222 3 < 200 3 < Content-Length: 4 3 < Content-Type: application/json; charset=utf-8 3 < Server: Microsoft-IIS/10.0 3 < Strict-Transport-Security: max-age=2592000 3 < X-Powered-By: ASP.NET 3 < Date: Tue, 15 Nov 2022 13:55:49 GMT true
876
Then status 200
0
878
Given path 'internalapi/api/licensing/fees/check-payments/get/'+appId
0
879
And header authorization = 'Bearer ' + strToken
0
880
And request {}
0
881
When method get
161
19:25:52.523 request: 4 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/check-payments/get/13864 4 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 4 > Content-Type: application/json; charset=UTF-8 4 > Content-Length: 2 4 > Host: slaleapqaapi.svam.com 4 > Connection: Keep-Alive 4 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 4 > Accept-Encoding: gzip,deflate {} 19:25:52.682 response time in milliseconds: 159 4 < 200 4 < Content-Length: 441 4 < Content-Type: application/json; charset=utf-8 4 < Server: Microsoft-IIS/10.0 4 < Strict-Transport-Security: max-age=2592000 4 < X-Powered-By: ASP.NET 4 < Date: Tue, 15 Nov 2022 13:55:49 GMT [{"checkDetailId":2347,"appId":13864,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T00:00:00","slaintakeDate":"2022-11-15T00:00:00","amount":1060.0000,"isPaymentFailed":false,"appliedTo":null,"amountUsed":null,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T08:55:49.85","modifiedBy":null,"modifiedDate":null}]
882
Then status 200
0
883
And def checkDetailId = response[0].checkDetailId
0
884
And print checkDetailId
0
19:25:52.683 [print] 2347
885
* def amount = response[0].amount
0
886
* def underpaidAmount = totalFees-amount
0
888
And print 'underpaidAmount- ',underpaidAmount
0
19:25:52.683 [print] underpaidAmount- 0.0
890
Given path '/internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
891
And header Content-Type = 'application/json; charset=utf-8'
0
892
* def futureDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( 30 )); return sdf.format(dayAfter); }
903
* def futureDate = futureDateFunc()
1
904
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
913
* def date = getDate2()
0
915
And header Accept = 'application/json; text/plain;*/*'
0
916
And header authorization = 'Bearer ' + strToken
0
917
And request {"checks":[{"appId":'#(appId)',"slaintakeDate":'#(date)',"applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":'#(date)',"amount":'#(totalFees)'}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":'#(licInitialFees)',"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":'#(renewalFees)',"totalFees":'#(totalFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":'#(licAncillaryFees)',"isFeesWaived":false,"underPaymentAmount":'#(totalFees)',"amountReceived":"0.00","waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":8531,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
0
920
When method post
214
19:25:52.688 request: 5 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13864/false 5 > Content-Type: application/json; charset=utf-8 5 > Accept: application/json; text/plain;*/* 5 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 5 > Content-Length: 5068 5 > Host: slaleapqaapi.svam.com 5 > Connection: Keep-Alive 5 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 5 > Accept-Encoding: gzip,deflate {"checks":[{"appId":13864,"slaintakeDate":"2022-11-15T19:25:52.686Z","applyClick":false,"paymentSource":"RDC","checkNo":"1","batchNo":1,"itemNo":1,"slareceivedDate":"2022-11-15T19:25:52.686Z","amount":1060.0}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119058","applicationTypeId":1,"appFeesId":0,"appId":13864,"feesRefId":6039,"initialFees":0.0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"30","totalFees":1060.0,"filingFees":"100","ancillaryFees":"0","isFeesWaived":false,"underPaymentAmount":1060.0,"amountReceived":"0.00","waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":true,"sendNotification":false,"fundDueDate":"2022-11-22T19:25:51.881Z","emailNotificationDetail":{"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13864,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13864,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13864,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":8531,"email":"automation@svam.com","appId":13864,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13864,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13864,"createdBy":"Tarun Gupta"},"taskId":null} 19:25:52.900 response time in milliseconds: 212 5 < 200 5 < Content-Length: 4 5 < Content-Type: application/json; charset=utf-8 5 < Server: Microsoft-IIS/10.0 5 < Strict-Transport-Security: max-age=2592000 5 < X-Powered-By: ASP.NET 5 < Date: Tue, 15 Nov 2022 13:55:49 GMT true
921
Then status 200
0
# ********* SAVE Application Details To Save *********************
928
Given path '/internalapi/api/licensing/app/save'
0
929
And header authorization = 'Bearer ' + strToken
0
930
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":'#(CityName)',"fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
2
931
When method post
346
19:25:52.909 request: 6 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 6 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 6 > Content-Type: application/json; charset=UTF-8 6 > Content-Length: 30721 6 > Host: slaleapqaapi.svam.com 6 > Connection: Keep-Alive 6 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 6 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13864,"formID":1165,"applicationID":"NA-0111-22-119058","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:25:53.249 response time in milliseconds: 338 6 < 200 6 < Content-Length: 51 6 < Content-Type: application/json; charset=utf-8 6 < Server: Microsoft-IIS/10.0 6 < Strict-Transport-Security: max-age=2592000 6 < X-Powered-By: ASP.NET 6 < Date: Tue, 15 Nov 2022 13:55:50 GMT {"appId":13864,"applicationId":"NA-0111-22-119058"}
932
Then status 200
0
935
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
936
And header authorization = 'Bearer ' + strToken
0
937
And header Content-Type = 'application/json; charset=utf-8'
0
938
And header Accept = 'application/json; text/plain;*/*'
0
939
And request ""
0
940
When method get
237
19:25:53.253 request: 7 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13864 7 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 7 > Content-Type: application/json; charset=utf-8 7 > Accept: application/json; text/plain;*/* 7 > Content-Length: 0 7 > Host: slaleapqaapi.svam.com 7 > Connection: Keep-Alive 7 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 7 > Accept-Encoding: gzip,deflate 19:25:53.489 response time in milliseconds: 236 7 < 200 7 < Content-Length: 660 7 < Content-Type: application/json; charset=utf-8 7 < Server: Microsoft-IIS/10.0 7 < Strict-Transport-Security: max-age=2592000 7 < X-Powered-By: ASP.NET 7 < Date: Tue, 15 Nov 2022 13:55:50 GMT [{"licenseName":"Restaurant - Beer","applicationId":"NA-0111-22-119058","applicationTypeId":1,"appFeesId":3083,"appId":13864,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":0.0,"totalFees":0.0,"filingFees":100.00,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
941
Then status 200
0
942
And print response[0].appFeesId
0
19:25:53.489 [print] 3083
943
And def appFeesId1 = response[0].appFeesId
0
944
And def feesRefId1 = response[0].feesRefId
0
945
And print appFeesId1
0
19:25:53.490 [print] 3083
946
And print feesRefId1
0
19:25:53.490 [print] 6039
947
And def applicationTypeId = response[0].applicationTypeId
0
948
And print applicationTypeId
0
19:25:53.490 [print] 1
# ********* Save PAYMENT *********************
951
Given path '/internalapi/api/licensing/fees/details/save/'+appId +'/false'
0
953
* def slaDate = licFeesDate()
1
954
* def slaaDate = licDate()
1
955
* def licInitialFees1 = licInitialFees+''
0
956
And print licInitialFees1
0
19:25:53.493 [print] 0
957
* def renewalFees1 = renewalFees+''
0
958
And print renewalFees1
0
19:25:53.493 [print] 30
959
* def totalFees1 = totalFees+''
0
961
And print totalFees1
0
19:25:53.494 [print] 1060
962
* def licAncillaryFees1 = licAncillaryFees+''
1
963
* def licfilingFees1 = licfilingFees+''
0
965
And header authorization = 'Bearer ' + strToken
0
966
And request {"checks":[{"checkDetailId":'#(checkDetailId)',"appId":'#(appId)',"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":'#(date)',"slaintakeDate":'#(date)',"amount":'#(amount)',"appliedTo":null,"amountUsed":'#(amount)',"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":'#(date)',"modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0}],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":1,"appFeesId":'#(licFeesRefId)',"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":0,"licensingFees":'#(licenseFees)',"amendmentFees":"0.00","renewalFees":"0.00","totalFees":'#(totalFees1)',"filingFees":'#(licfilingFees1)',"ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":'#(underpaidAmount)',"amountReceived":'#(amount)',"waivedComment":null,"isBondReceived":'#(isBondRequired)',"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":'#(appId)',"checkDetailId":'#(checkDetailId)',"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":'#(amount)',"amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":'#(emailId)',"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)',"createdBy":"Tarun Gupta"},"taskId":null}
1
971
When method post
218
19:25:53.499 request: 8 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13864/false 8 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 8 > Content-Type: application/json; charset=UTF-8 8 > Content-Length: 5458 8 > Host: slaleapqaapi.svam.com 8 > Connection: Keep-Alive 8 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 8 > Accept-Encoding: gzip,deflate {"checks":[{"checkDetailId":2347,"appId":13864,"paymentSource":"RDC","checkNo":"1","batchNo":"1","itemNo":"1","slareceivedDate":"2022-11-15T19:25:52.686Z","slaintakeDate":"2022-11-15T19:25:52.686Z","amount":1060.0,"appliedTo":null,"amountUsed":1060.0,"comment":null,"isReplacement":null,"replacementReason":null,"isActive":true,"createdBy":"tgupta@svam.com","createdDate":"2022-11-15T19:25:52.686Z","modifiedBy":null,"modifiedDate":null,"applyClick":true,"amountAvailable":0}],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"NA-0111-22-119058","applicationTypeId":1,"appFeesId":6039,"appId":13864,"feesRefId":6039,"initialFees":0,"licensingFees":960,"amendmentFees":"0.00","renewalFees":"0.00","totalFees":"1060","filingFees":"100","ancillaryFees":"0.00","isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":1060.0,"waivedComment":null,"isBondReceived":true,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[{"appId":13864,"checkDetailId":2347,"checkNo":"1","itemNo":"1","batchNo":"1","amountAppliedForApp":1060.0,"amount":0}],"lateFee":0,"isFeesBarPerDay":null}],"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":"2022-11-22T19:25:51.881Z","emailNotificationDetail":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13864,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13864,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13864,"createdBy":"Tarun Gupta"}},"notificationDetails":{"applicant":{"communicationId":15102,"email":"automation@svam.com","appId":13864,"emailContactTypeId":1,"isChecked":true,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13864,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13864,"createdBy":"Tarun Gupta"},"taskId":null} 19:25:53.715 response time in milliseconds: 214 8 < 200 8 < Content-Length: 4 8 < Content-Type: application/json; charset=utf-8 8 < Server: Microsoft-IIS/10.0 8 < Strict-Transport-Security: max-age=2592000 8 < X-Powered-By: ASP.NET 8 < Date: Tue, 15 Nov 2022 13:55:50 GMT true
972
Then status 200
0
973
And print response
1
19:25:53.716 [print] true
# ********* SAVE Application Details To Save *********************
978
Given path '/internalapi/api/licensing/app/save'
0
979
And header authorization = 'Bearer ' + strToken
0
980
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":'#(CityName)',"fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
1
981
When method post
264
19:25:53.722 request: 9 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 9 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 9 > Content-Type: application/json; charset=UTF-8 9 > Content-Length: 30721 9 > Host: slaleapqaapi.svam.com 9 > Connection: Keep-Alive 9 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 9 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13864,"formID":1165,"applicationID":"NA-0111-22-119058","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:25:53.981 response time in milliseconds: 259 9 < 200 9 < Content-Length: 51 9 < Content-Type: application/json; charset=utf-8 9 < Server: Microsoft-IIS/10.0 9 < Strict-Transport-Security: max-age=2592000 9 < X-Powered-By: ASP.NET 9 < Date: Tue, 15 Nov 2022 13:55:50 GMT {"appId":13864,"applicationId":"NA-0111-22-119058"}
982
Then status 200
0
983
And def serverResponse = response
0
906
* call read('LicensesCommonMethods.feature@SubmitLicenseAndValidateLicStatus') {expStatus:'Awaiting Review'}
10196
>>
karate.UseCases.LicensesCommonMethods
6947
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Application SUBMIT *********************
1099
Given path '/internalapi/api/licensing/app/submit'
0
1100
And header authorization = 'Bearer ' + strToken
0
1101
And request {"appId":'#(appId)',"wfType":null}
0
1102
When method post
337
19:25:57.222 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/submit 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 29 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"appId":13864,"wfType":null} 19:25:57.557 response time in milliseconds: 334 1 < 200 1 < Content-Length: 123 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:55:54 GMT {"success":true,"submittedApps":[{"success":true,"taskId":0,"appId":13864,"applicationId":"NA-0111-22-119058","error":""}]}
1103
Then status 200
0
1104
And def serverResponse = response
0
1105
And match response.success == true
4
1106
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
6602
>>
karate.UseCases.LicensesCommonMethods
3600
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
3405
1196
And header authorization = 'Bearer ' + strToken
1
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
186
19:26:03.949 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13864 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:26:04.128 response time in milliseconds: 179 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:56:01 GMT 1 < Content-Length: 215 {"applicationId":"NA-0111-22-119058","submitDate":"2022-11-15T08:55:54.76","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
1
1205
And print licStatus
1
19:26:04.131 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
3
907
* call read('LicensesCommonMethods.feature@AssignApplicationsToExaminer') {}
7565
>>
karate.UseCases.LicensesCommonMethods
3741
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
1
5
* def DbUtils = Java.type('utils.DbUtils')
3
6
* def db = new DbUtils(config)
1
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
11
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
4
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* AssignApplicationsSaveDigestDataToExaminer *********************
1139
Given path '/internalapi/api/licensing/examiner/assignApplicationsToExaminer'
0
1140
And header authorization = 'Bearer ' + strToken
0
1141
And request [{"appId":'#(appId)',"examinerId":1069,"priority":"Normal"}]
0
1142
When method post
258
19:26:08.027 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/examiner/assignApplicationsToExaminer 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 55 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate [{"appId":13864,"examinerId":1069,"priority":"Normal"}] 19:26:08.284 response time in milliseconds: 257 1 < 200 1 < Content-Length: 5 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:56:05 GMT false
1143
And def serverResponse = response
0
1144
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
3463
>>
karate.UseCases.LicensesCommonMethods
937
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
3
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
4
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
1
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
2
1195
* def dbSts = db.cleanHeap()
707
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
217
19:26:11.525 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13864 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:26:11.741 response time in milliseconds: 216 1 < 200 1 < Content-Length: 215 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:56:09 GMT {"applicationId":"NA-0111-22-119058","submitDate":"2022-11-15T08:55:54.76","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:26:11.742 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
0
908
* call read('LicensesCommonMethods.feature@ExaminerReviewApprovalToLB') {}
2318
>>
karate.UseCases.LicensesCommonMethods
1489
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Examiner Review Approval to LB *********************
1149
* def summisionDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS"); var date = new java.util.Date(); return sdf.format(date); }
1157
Given path '/internalapi/api/licensing/examiner-review/SaveNewLicense'
0
1158
* def formatedSumbitDate = summisionDate()
0
1159
And header authorization = 'Bearer ' + strToken
0
1160
And header current-wfroleid = 4
0
1161
And request {"isFingerPrintsApproved":false,"isFingerPrintsRequired":false,"isCorpLLCDissolved":false,"isCorpLLCDTaken":false,"isSendPDLetter":false,"isDisable500LB_FBPT":false,"isDisableLBForPD":false,"isDisableLBForCaseClosed":false,"isDisableLateRenewalAndUnderpayment":false,"isLiquidatorPermitHasCompleted":-1,"isSubmit":true,"fieldDeficiencies":[],"masterFileData":[],"combinedCraftData":[],"application":{"applicationCategory":1,"appId":'#(appId)',"applicationId":'#(ApplicationId)',"licePermitTypeId":null,"applicationTypeId":1,"formVersionId":1231,"formId":'#(formId)',"legalName":'#(legalName)',"submitDate":'#(formatedSumbitDate)',"isGISRequired":null,"licenseDescription":'#(description)',"recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":'#(CityName)',"priority":"Normal","expirationDate":null,"appStatusId":3,"taskStatus":"Awaiting Review","taskId":1026,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":true,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":false,"isNotQualified":false,"eventDate":null,"appStatus":{"appStatusId":3,"statusDescription":"Under Review","isActive":true,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":{"appExaminerId":1069,"appId":'#(appId)',"examinerId":1069,"name":null,"assignDate":'#(formatedSumbitDate)',"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"assignAppToLB":null,"licePermitType":{"licPermitTypeId":'#(mainLicensePermitTypeId)',"type":"1","category":"1","product":'#(productName)',"class":null,"description":null,"sectionOfLaw":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isTempPermit":false,"isELicensingPermit":false,"isAdditionalBar":false},"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":'#(mainLicensePermitTypeId)',"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":true,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":'#(formatedSumbitDate)'},"appId":'#(appId)',"notificationTypeId":2028,"applicationType":1,"decisionType":{"name":"Send to Licensing Board","value":2},"emailNotificationModel":{"applicant":{},"attorney":{},"communityBoard":{},"other":{}},"hasErrors":[],"taskId":1026,"newComments":"","recommendedDecisionId":null};
0
1162
When method post
344
19:26:12.580 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/examiner-review/SaveNewLicense 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > current-wfroleid: 4 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 3055 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isFingerPrintsApproved":false,"isFingerPrintsRequired":false,"isCorpLLCDissolved":false,"isCorpLLCDTaken":false,"isSendPDLetter":false,"isDisable500LB_FBPT":false,"isDisableLBForPD":false,"isDisableLBForCaseClosed":false,"isDisableLateRenewalAndUnderpayment":false,"isLiquidatorPermitHasCompleted":-1,"isSubmit":true,"fieldDeficiencies":[],"masterFileData":[],"combinedCraftData":[],"application":{"applicationCategory":1,"appId":13864,"applicationId":"NA-0111-22-119058","licePermitTypeId":null,"applicationTypeId":1,"formVersionId":1231,"formId":1165,"legalName":"Automation20221115192545Automation","submitDate":"2022-11-15T19:26:12.579","isGISRequired":null,"licenseDescription":"Restaurant-Beer","recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":"New York","priority":"Normal","expirationDate":null,"appStatusId":3,"taskStatus":"Awaiting Review","taskId":1026,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":true,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":false,"isNotQualified":false,"eventDate":null,"appStatus":{"appStatusId":3,"statusDescription":"Under Review","isActive":true,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":{"appExaminerId":1069,"appId":13864,"examinerId":1069,"name":null,"assignDate":"2022-11-15T19:26:12.579","isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"assignAppToLB":null,"licePermitType":{"licPermitTypeId":40,"type":"1","category":"1","product":"RestaurantBeer","class":null,"description":null,"sectionOfLaw":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isTempPermit":false,"isELicensingPermit":false,"isAdditionalBar":false},"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":40,"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":true,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":"2022-11-15T19:26:12.579"},"appId":13864,"notificationTypeId":2028,"applicationType":1,"decisionType":{"name":"Send to Licensing Board","value":2},"emailNotificationModel":{"applicant":{},"attorney":{},"communityBoard":{},"other":{}},"hasErrors":[],"taskId":1026,"newComments":"","recommendedDecisionId":null} 19:26:12.924 response time in milliseconds: 344 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:56:10 GMT 1 < Content-Length: 4 true
1163
Then status 200
0
1164
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
1142
>>
karate.UseCases.LicensesCommonMethods
400
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
204
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
192
19:26:13.875 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13864 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:26:14.060 response time in milliseconds: 185 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:56:11 GMT 1 < Content-Length: 215 {"applicationId":"NA-0111-22-119058","submitDate":"2022-11-15T08:55:54.76","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:26:14.061 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
0
909
* call read('LicensesCommonMethods.feature@LBClaimingQueue') {}
2656
>>
karate.UseCases.LicensesCommonMethods
1819
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* LB Claiming Queue *********************
1249
Given path 'internalapi/api/licensing/claiming-queue/add/'+appId +'/1069'
0
1250
And header authorization = 'Bearer ' + strToken
0
1251
And header current-wfroleid = 5
0
1252
And request {}
0
1253
When method post
145
19:26:14.908 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/claiming-queue/add/13864/1069 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > current-wfroleid: 5 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:26:15.053 response time in milliseconds: 145 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:56:12 GMT 1 < Content-Length: 4 true
1254
Then status 200
0
1255
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
1670
>>
karate.UseCases.LicensesCommonMethods
1105
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
884
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
218
19:26:16.496 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13864 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:26:16.713 response time in milliseconds: 217 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:56:14 GMT 1 < Content-Length: 215 {"applicationId":"NA-0111-22-119058","submitDate":"2022-11-15T08:55:54.76","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:26:16.713 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1
910
* def expirationDate = fundDueDateFunc(10)
1
911
* call read('LicensesCommonMethods.feature@LBApprovalWithDueDate') {approvalName:'Approved', expStatus:'Approved'}
2050
>>
karate.UseCases.LicensesCommonMethods
1493
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* LB Approval *********************
2346
Given path '/internalapi/api/licensing/search/GetEmailNotificationByAppIdAndNotificationTypeId/'+appId+'/0'
0
2347
And header authorization = 'Bearer ' + strToken
0
2348
And request ''
0
2349
When method get
151
19:26:17.283 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/search/GetEmailNotificationByAppIdAndNotificationTypeId/13864/0 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: text/plain; charset=UTF-8 1 > Content-Length: 0 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate 19:26:17.432 response time in milliseconds: 149 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:56:14 GMT 1 < Content-Length: 1959 {"applicant":{"communicationId":25261,"email":"automation@svam.com","appId":13864,"emailContactTypeId":1,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":25264,"email":"sbandi@svam.com","appId":13864,"emailContactTypeId":2,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":null,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null}}
2350
Then status 200
0
2351
And def serverResponse = response
0
2352
* def applicantCommId = serverResponse.applicant.communicationId
0
2353
* def attorneyCommId = serverResponse.attorney.communicationId
0
2355
Given path '/internalapi/api/licensing/new-license/saveDecision'
0
2356
And header authorization = 'Bearer ' + strToken
0
2357
And header current-wfroleid = 5
0
2358
* def getSelectedDecisionFunc =
0
function(value1){ if (value1 == 'Approved'){ return 1; } else if (value1 == 'Disapproved'){ return 2; } else if (value1 == 'Disapproval to Counsel'){ return 3; }else if (value1 == 'Withdrawal'){ return 4; }else if (value1 == 'Conditionally Approved'){ return 5; }else if (value1 == 'FB Decision Required'){ return 6; }else if (value1 == 'Return to Examiner'){ return 7; } else { return 1; } }
2384
* def selectedDecisionCode = getSelectedDecisionFunc(approvalName)
2
2385
And print selectedDecisionCode
0
19:26:17.436 [print] 1
2386
And request {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":'#(appId)',"applicationType":1,"applicationId":'#(ApplicationId)',"legalName":'#(legalName)',"statusId":3,"decisionType":{"name":'#(approvalName)',"value":'#(selectedDecisionCode)'},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":'#(effectiveDate)',"expirationDate":'#(expirationDate)',"stipulations":[],"descriptions":[]}}
0
2388
When method post
286
19:26:17.437 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/new-license/saveDecision 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > current-wfroleid: 5 2 > Content-Type: application/json; charset=UTF-8 2 > Content-Length: 2479 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":13864,"applicationType":1,"applicationId":"NA-0111-22-119058","legalName":"Automation20221115192545Automation","statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":"2022-11-15","expirationDate":"2022-11-25T19:26:16.726Z","stipulations":[],"descriptions":[]}} 19:26:17.722 response time in milliseconds: 285 2 < 200 2 < Content-Length: 4 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:56:15 GMT true
2389
Then status 200
0
2390
And def serverResponse = response
0
2391
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
1050
>>
karate.UseCases.LicensesCommonMethods
516
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
187
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
325
19:26:18.437 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13864 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:26:18.760 response time in milliseconds: 323 1 < 200 1 < Content-Length: 208 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:56:15 GMT {"applicationId":"NA-0111-22-119058","submitDate":"2022-11-15T08:55:54.76","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Approved"},"isLicenseApplication":true,"isPreFilled":false}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:26:18.761 [print] Approved
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1
912
* call read('LicensesCommonMethods.feature@ValidateLicenseApplicationStatus') {LicAppStatus:'Approved'}
735
>>
karate.UseCases.LicensesCommonMethods
258
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1326
Given path 'internalapi/api/GenericSearch/SearchLicense'
0
1327
And header Content-Type = 'application/json; charset=utf-8'
0
1328
And header Accept = 'application/json; text/plain;*/*'
0
1329
And header authorization = 'Bearer ' + strToken
0
1330
And params {page:1,pageSize:10}
0
1331
And request [{"dataTypeValue":"Text","key":"ApplicationId","operatorValue":"=","value":'#(ApplicationId)'}]
0
1332
When method post
255
19:26:19.252 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/GenericSearch/SearchLicense?pageSize=10&page=1 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 96 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate [{"dataTypeValue":"Text","key":"ApplicationId","operatorValue":"=","value":"NA-0111-22-119058"}] 19:26:19.505 response time in milliseconds: 253 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:56:16 GMT 1 < Content-Length: 684 {"data":[{"acaId":13864,"acaType":"application","applicationLicenseId":"0111-22-129125","legacySerialNo":null,"legalName":"Automation20221115192545Automation","dba":null,"licenseDescription":"Restaurant-Beer","expirationDate":"2022-11-25T00:00:00","examinerAssigned":"Tarun Gupta","premisesAddress":"Address1 Address2 New York New York New York 12345 1234 United States (US)","applicantAddress":"Address1 Address2 New York New York New York 12345 1234 United States (US)","feinSsn":"","formId":1165,"applicationId":"NA-0111-22-119058","licenseId":"0111-22-129125","wfRoleId":2,"applicationStatus":"Approved","licenseStatus":"Active"}],"total":1,"aggregateResults":null,"errors":null}
1333
Then status 200
0
1334
And print response
0
19:26:19.506 [print] { "data": [ { "acaId": 13864, "acaType": "application", "applicationLicenseId": "0111-22-129125", "legacySerialNo": null, "legalName": "Automation20221115192545Automation", "dba": null, "licenseDescription": "Restaurant-Beer", "expirationDate": "2022-11-25T00:00:00", "examinerAssigned": "Tarun Gupta", "premisesAddress": "Address1 Address2 New York New York New York 12345 1234 United States (US)", "applicantAddress": "Address1 Address2 New York New York New York 12345 1234 United States (US)", "feinSsn": "", "formId": 1165, "applicationId": "NA-0111-22-119058", "licenseId": "0111-22-129125", "wfRoleId": 2, "applicationStatus": "Approved", "licenseStatus": "Active" } ], "total": 1, "aggregateResults": null, "errors": null }
1335
* match response.data[0].applicationStatus == '#(LicAppStatus)'
1
914
* call read('LicensesCommonMethods.feature@GetLicenseId') {}
707
>>
karate.UseCases.LicensesCommonMethods
177
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
3212
Given path '/internalapi/api/licensing/LBDecision/getLicenseByAppId/' + appId +'/-1'
0
3213
And header authorization = 'Bearer ' + strToken
0
3214
* def EffectiveDate = EffDate()
0
3215
And request {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":'#(appId)',"applicationType":1,"applicationId":'#(ApplicationId)',"legalName":null,"statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":'#(EffectiveDate)',"expirationDate":'#(expiryDate)',"stipulations":[],"descriptions":[]}}
3
3216
When method get
170
19:26:20.044 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/LBDecision/getLicenseByAppId/13864/-1 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 2436 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"isSubmit":true,"isHoldForCB":false,"isWaiverReceived":false,"masterFileData":[],"combinedCraftData":[],"appId":13864,"applicationType":1,"applicationId":"NA-0111-22-119058","legalName":null,"statusId":3,"decisionType":{"name":"Approved","value":1},"emailNotificationModel":{"applicant":{},"attorney":{},"other":{"email":""}},"hasErrors":[],"taskId":1151,"newComments":"","approval":{"isDefineStipulations":false,"selectInput":{"fromFields":[{"id":1,"label":"Inside of premises closes at x"},{"id":2,"label":"Side walk café closes at x"},{"id":3,"label":"Backyard closes at x"},{"id":4,"label":"Alcohol consumption inside stops at X"},{"id":5,"label":"Alcohol consumption in backyard stops at x"},{"id":6,"label":"Alcohol consumption on sidewalk café stops at x"},{"id":7,"label":"No live music in inside of premises"},{"id":8,"label":"No live music outside of premise"},{"id":9,"label":"No DJs"},{"id":10,"label":"No promoters"},{"id":11,"label":"No Promoted events"},{"id":12,"label":"Recorded music only"},{"id":13,"label":"Music stops at X"},{"id":14,"label":"Music outside stops at X"},{"id":15,"label":"Only non-amplified music"},{"id":16,"label":"Acoustic music only"},{"id":17,"label":"No bar crawls"},{"id":18,"label":"Close façade doors at certain time"},{"id":19,"label":"Close Windows at a certain time"},{"id":20,"label":"No boozy brunches"},{"id":21,"label":"No unlimited drink"},{"id":22,"label":"No happy Hours"},{"id":23,"label":"No bottle service "},{"id":24,"label":"No dancing"},{"id":25,"label":"No delivery bikes"},{"id":26,"label":"No TVs"},{"id":27,"label":"Licensed patio"},{"id":28,"label":"Licensed sidewalk café"},{"id":29,"label":"No outside areas"},{"id":30,"label":"Security Guards required"},{"id":31,"label":"X amount of security guards per x amount of patrons"},{"id":32,"label":"# of security guards per patron"},{"id":33,"label":"No VIP"},{"id":34,"label":"No roped lines"},{"id":35,"label":"No hookah"},{"id":36,"label":"Doors closed at all times"},{"id":37,"label":"Windows closed at all time"},{"id":38,"label":"All agreed upon CB stipulations except"},{"id":39,"label":"All employees must be TIPS trained"}],"toFields":[],"isRewritable":true,"rewriteLabel":"Edit Stipulation:","srclabel":"Select Stipulations","dstlabel":"Add to Certificate","additionalLabel":"Add Additional Stipulations:"},"effectiveDate":"2022-11-15","expirationDate":"#(expiryDate)","stipulations":[],"descriptions":[]}} 19:26:20.213 response time in milliseconds: 169 1 < 200 1 < Content-Length: 2853 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:56:16 GMT {"license":{"licId":1474,"applicationId":null,"licenseId":"0111-22-129125","licensePermitId":null,"licePermitTypeId":40,"appId":13864,"legacySerialNo":null,"issueDate":null,"expiryDate":"2025-10-31T00:00:00","effectiveDate":"2022-11-15T00:00:00","seasonalStartDate":null,"seasonalEndDate":null,"safeKeepingExpiryDate":null,"status":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"extTempPermitEnabled":false,"application":{"applicationCategory":null,"appId":null,"applicationId":null,"licePermitTypeId":null,"applicationTypeId":null,"formVersionId":null,"formId":null,"legalName":null,"submitDate":null,"isGISRequired":null,"licenseDescription":null,"recommendedDecisionId":null,"status500":null,"isApplicableForPDLetter":false,"countyName":null,"priority":null,"expirationDate":null,"appStatusId":null,"taskStatus":null,"taskId":null,"currentWfstatus":null,"communityBoard":null,"isLicenseApplication":null,"currentDueDate":null,"isFinalDeficiency":null,"isHighlyDeficient":null,"isAllDeficienciesMet":null,"pastDueDate":null,"memo":null,"isOneTimePermit":null,"dueDateAction":null,"isDisapprovedForCause":null,"isNotQualified":null,"eventDate":null,"appStatus":{"appStatusId":0,"statusDescription":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null},"applicationType":null,"assignAppExaminer":null,"assignAppToLB":null,"licePermitType":null,"assoApplicationList":[],"isTempPermit":null,"isTempOrLiq":false,"licPermitTypeId":0,"isAssociatedLicense":null,"effectiveDate":null,"assignedUserId":null,"amendmentTypeId":null,"amendmentType":null,"disapprovedDate":null,"condApprovedDate":null,"addressId":null,"isCaseOpen":null,"isClosed":null,"isCaseOpenSameAddress":null,"isSpecialEventPlusFour":null,"isSpecialEventInsideFiveBoroughs":null,"licStatus":null,"createdBy":null,"clericalName":null,"licenseId":null,"address":null,"isNybeApp":false,"isHearingCompleted":null,"does500FtHearingExist":null,"parentAppStatus":null,"premisesAppCount":0,"statusDescription":null,"eventAddress":null,"isFairOrFestival":false,"isShowEffExpDateOnLBReview":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"options":null,"emailNotificationModel":null,"taskOptionsListNested":null,"days":0,"permit":null,"licPermitType":null,"licensePermitMapping":null,"licenseFee":null,"accountBalance":null,"licenseDescription":null,"isSeasonal":false,"isSummerSeasonal":false,"newExpiryDate":null,"amountDue":null,"originalLicenseFee":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"wfRoleId":0},"person":[],"totalRecord":0,"apps":[]}
3217
Then status 200
0
3218
And def serverResponse = response
0
3219
And print serverResponse
0
19:26:20.214 [print] { "license": { "licId": 1474, "applicationId": null, "licenseId": "0111-22-129125", "licensePermitId": null, "licePermitTypeId": 40, "appId": 13864, "legacySerialNo": null, "issueDate": null, "expiryDate": "2025-10-31T00:00:00", "effectiveDate": "2022-11-15T00:00:00", "seasonalStartDate": null, "seasonalEndDate": null, "safeKeepingExpiryDate": null, "status": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null, "extTempPermitEnabled": false, "application": { "applicationCategory": null, "appId": null, "applicationId": null, "licePermitTypeId": null, "applicationTypeId": null, "formVersionId": null, "formId": null, "legalName": null, "submitDate": null, "isGISRequired": null, "licenseDescription": null, "recommendedDecisionId": null, "status500": null, "isApplicableForPDLetter": false, "countyName": null, "priority": null, "expirationDate": null, "appStatusId": null, "taskStatus": null, "taskId": null, "currentWfstatus": null, "communityBoard": null, "isLicenseApplication": null, "currentDueDate": null, "isFinalDeficiency": null, "isHighlyDeficient": null, "isAllDeficienciesMet": null, "pastDueDate": null, "memo": null, "isOneTimePermit": null, "dueDateAction": null, "isDisapprovedForCause": null, "isNotQualified": null, "eventDate": null, "appStatus": { "appStatusId": 0, "statusDescription": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null }, "applicationType": null, "assignAppExaminer": null, "assignAppToLB": null, "licePermitType": null, "assoApplicationList": [ ], "isTempPermit": null, "isTempOrLiq": false, "licPermitTypeId": 0, "isAssociatedLicense": null, "effectiveDate": null, "assignedUserId": null, "amendmentTypeId": null, "amendmentType": null, "disapprovedDate": null, "condApprovedDate": null, "addressId": null, "isCaseOpen": null, "isClosed": null, "isCaseOpenSameAddress": null, "isSpecialEventPlusFour": null, "isSpecialEventInsideFiveBoroughs": null, "licStatus": null, "createdBy": null, "clericalName": null, "licenseId": null, "address": null, "isNybeApp": false, "isHearingCompleted": null, "does500FtHearingExist": null, "parentAppStatus": null, "premisesAppCount": 0, "statusDescription": null, "eventAddress": null, "isFairOrFestival": false, "isShowEffExpDateOnLBReview": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskRoleId": 0, "taskDecision": null, "isActive": null, "createdDate": null, "modifiedBy": null, "wfRoleId": 0, "modifiedDate": null }, "options": null, "emailNotificationModel": null, "taskOptionsListNested": null, "days": 0, "permit": null, "licPermitType": null, "licensePermitMapping": null, "licenseFee": null, "accountBalance": null, "licenseDescription": null, "isSeasonal": false, "isSummerSeasonal": false, "newExpiryDate": null, "amountDue": null, "originalLicenseFee": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskId": null, "taskRoleId": 0, "taskDecision": null, "wfRoleId": 0 }, "person": [ ], "totalRecord": 0, "apps": [ ] }
3220
And def licId = serverResponse.license.licId
0
3221
And def licenseId = serverResponse.license.licenseId
0
3222
And def ActEffDate = serverResponse.license.seasonalStartDate
0
3223
And def ActExpDate = serverResponse.license.expiryDate
0
3224
And print serverResponse
0
19:26:20.215 [print] { "license": { "licId": 1474, "applicationId": null, "licenseId": "0111-22-129125", "licensePermitId": null, "licePermitTypeId": 40, "appId": 13864, "legacySerialNo": null, "issueDate": null, "expiryDate": "2025-10-31T00:00:00", "effectiveDate": "2022-11-15T00:00:00", "seasonalStartDate": null, "seasonalEndDate": null, "safeKeepingExpiryDate": null, "status": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null, "extTempPermitEnabled": false, "application": { "applicationCategory": null, "appId": null, "applicationId": null, "licePermitTypeId": null, "applicationTypeId": null, "formVersionId": null, "formId": null, "legalName": null, "submitDate": null, "isGISRequired": null, "licenseDescription": null, "recommendedDecisionId": null, "status500": null, "isApplicableForPDLetter": false, "countyName": null, "priority": null, "expirationDate": null, "appStatusId": null, "taskStatus": null, "taskId": null, "currentWfstatus": null, "communityBoard": null, "isLicenseApplication": null, "currentDueDate": null, "isFinalDeficiency": null, "isHighlyDeficient": null, "isAllDeficienciesMet": null, "pastDueDate": null, "memo": null, "isOneTimePermit": null, "dueDateAction": null, "isDisapprovedForCause": null, "isNotQualified": null, "eventDate": null, "appStatus": { "appStatusId": 0, "statusDescription": null, "isActive": null, "createdBy": null, "createdDate": null, "modifiedBy": null, "modifiedDate": null }, "applicationType": null, "assignAppExaminer": null, "assignAppToLB": null, "licePermitType": null, "assoApplicationList": [ ], "isTempPermit": null, "isTempOrLiq": false, "licPermitTypeId": 0, "isAssociatedLicense": null, "effectiveDate": null, "assignedUserId": null, "amendmentTypeId": null, "amendmentType": null, "disapprovedDate": null, "condApprovedDate": null, "addressId": null, "isCaseOpen": null, "isClosed": null, "isCaseOpenSameAddress": null, "isSpecialEventPlusFour": null, "isSpecialEventInsideFiveBoroughs": null, "licStatus": null, "createdBy": null, "clericalName": null, "licenseId": null, "address": null, "isNybeApp": false, "isHearingCompleted": null, "does500FtHearingExist": null, "parentAppStatus": null, "premisesAppCount": 0, "statusDescription": null, "eventAddress": null, "isFairOrFestival": false, "isShowEffExpDateOnLBReview": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskRoleId": 0, "taskDecision": null, "isActive": null, "createdDate": null, "modifiedBy": null, "wfRoleId": 0, "modifiedDate": null }, "options": null, "emailNotificationModel": null, "taskOptionsListNested": null, "days": 0, "permit": null, "licPermitType": null, "licensePermitMapping": null, "licenseFee": null, "accountBalance": null, "licenseDescription": null, "isSeasonal": false, "isSummerSeasonal": false, "newExpiryDate": null, "amountDue": null, "originalLicenseFee": null, "userName": null, "userId": 0, "currentRoleId": 0, "tempGuid": null, "applicationStatus": null, "taskId": null, "taskRoleId": 0, "taskDecision": null, "wfRoleId": 0 }, "person": [ ], "totalRecord": 0, "apps": [ ] }
3225
And print 'licId : ' , licId
0
19:26:20.215 [print] licId : 1474
3226
And print 'licenseId : ' , licenseId
0
19:26:20.215 [print] licenseId : 0111-22-129125
3227
And match licId != []
0
3228
And match licenseId != []
0
915
And print licenseId
0
19:26:20.219 [print] 0111-22-129125
916
* def notQualifiedApplication = false
0
917
* def notQlfdAppMessage = ''
0
918
* def NameSearch = 'automation'
0
920
* call read('RenewalCommonMethods.feature@IntakeRenewalLicense') {}
2841
>>
karate.UseCases.RenewalCommonMethods
2341
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
1
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
1
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
169
Given path '/internalapi/api/licensing/search/searchLicensesAndPermits/'
0
170
And header Content-Type = 'application/json; charset=utf-8'
0
172
And header Accept = 'application/json; text/plain;*/*'
0
173
And header authorization = 'Bearer ' + strToken
0
176
And request {"WfTaskIdList":[],"LicenseStatusList":[19,45,40],"ShowLicensesAndPermits":true,"Status":null,"isTempPermit":null,"ApplicationId":null,"LicensePermitId":'#(licenseId)',"LegalName":null,"FEIN":null,"applyFor":""}
0
177
When method POST
157
19:26:20.717 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/search/searchLicensesAndPermits 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 213 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"WfTaskIdList":[],"LicenseStatusList":[19,45,40],"ShowLicensesAndPermits":true,"Status":null,"isTempPermit":null,"ApplicationId":null,"LicensePermitId":"0111-22-129125","LegalName":null,"FEIN":null,"applyFor":""} 19:26:20.873 response time in milliseconds: 156 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:56:18 GMT 1 < Content-Length: 1290 {"licenses":[{"lpId":1474,"licensePermitId":"0111-22-129125","licPermitTypeId":40,"isAccociatedLicense":false,"appId":13864,"mainAppId":13864,"status":"Active","legacySerialNo":null,"isLicense":true,"isPermit":null,"issueDate":"2022-11-15T00:00:00","expiryDate":"2022-11-25T00:00:00","effectiveDate":"2022-11-15T00:00:00","safeKeepingExpiryDate":null,"licensePermitStatusId":19,"combinedCraftId":null,"masterFileId":null,"isApplicableForTransfer":null,"surrenderDate":null,"isActive":true,"createdDate":"2022-11-15T08:56:14.92","modifiedDate":null,"submitDate":"2022-11-15T08:55:54.76","description":"Restaurant-Beer","county":"New York","legalName":"Automation20221115192545Automation","fein":"","formId":1165,"isRenewalRequird":true,"dba":null,"associatePermits":[],"provisions":[],"address":{"addressId":null,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":null,"county":"New York","zipCode":"12345","zip4":null,"street":null,"telephoneNumber":null,"country":null,"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":null,"serialNo":0,"addressType":null,"state":null},"mfCCId":null}],"totalRecord":1}
178
Then status 200
0
179
* def licPermitTypeId = response.licenses[0].licPermitTypeId
0
180
* def lpId = response.licenses[0].lpId
0
181
* def effectiveDate = response.licenses[0].effectiveDate
0
182
* def expiryDate = response.licenses[0].expiryDate
0
183
* def legalName = response.licenses[0].legalName
0
184
* def licAppId = response.licenses[0].appId
0
185
* def submitDate = response.licenses[0].submitDate
0
186
* call read('LicensesCommonMethods.feature@GetCountyList') {}
1698
>>
karate.UseCases.LicensesCommonMethods
428
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
2
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
1
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
117
Given path '/internalapi/api/reference'
0
118
* def dbSts = db.cleanHeap()
279
119
And header authorization = 'Bearer ' + strToken
0
120
And header Content-Type = 'application/json;charset=utf-8'
0
121
And header Accept = 'text/plain'
0
# * def query = {name:countyzone&onlyActives:true}
123
And params {name:countyzone,onlyActives:true}
0
#And param onlyActives='true'
125
And request {}
0
126
When method get
143
19:26:22.425 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/reference?name=countyzone&onlyActives=true 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json;charset=utf-8 1 > Accept: text/plain 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:26:22.568 response time in milliseconds: 143 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:56:19 GMT 1 < Content-Length: 11712 {"values":[{"CountyId":1,"County":"New York","ShortName":"NEW","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T00:00:00","ModifiedBy":"esandoval","ModifiedDate":"2020-11-10T11:30:56.047"},{"CountyId":2,"County":"Kings","ShortName":"KING","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":3,"County":"Bronx","ShortName":"BRON","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":4,"County":"Queens","ShortName":"QUEE","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":5,"County":"Richmond","ShortName":"RICH","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":6,"County":"Nassau","ShortName":"NASS","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":7,"County":"Suffolk","ShortName":"SUFF","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":8,"County":"Westchester","ShortName":"WEST","ZoneNo":1,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":9,"County":"Orange","ShortName":"ORAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.573","ModifiedBy":null,"ModifiedDate":null},{"CountyId":10,"County":"Putnam","ShortName":"PUTN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":11,"County":"Rockland","ShortName":"ROCK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":12,"County":"Albany","ShortName":"ALBA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":13,"County":"Clinton","ShortName":"CLIN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":14,"County":"Columbia","ShortName":"COLU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":15,"County":"Dutchess","ShortName":"DUTC","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":16,"County":"Essex","ShortName":"ESSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":17,"County":"Franklin","ShortName":"FRAN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.577","ModifiedBy":null,"ModifiedDate":null},{"CountyId":18,"County":"Fulton","ShortName":"FULT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":19,"County":"Greene","ShortName":"GREE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.58","ModifiedBy":null,"ModifiedDate":null},{"CountyId":20,"County":"Hamilton","ShortName":"HAMI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":21,"County":"Montgomery","ShortName":"MONT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":22,"County":"Rensselaer","ShortName":"RENS","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":23,"County":"Saratoga","ShortName":"SARA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":24,"County":"Schenectady","ShortName":"SCHE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":25,"County":"Schoharie","ShortName":"SCHO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":26,"County":"Sullivan","ShortName":"SULL","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":27,"County":"Ulster","ShortName":"ULST","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.583","ModifiedBy":null,"ModifiedDate":null},{"CountyId":28,"County":"Warren","ShortName":"WARR","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":29,"County":"Washington","ShortName":"WASH","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":30,"County":"Allegany","ShortName":"ALLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":31,"County":"Cattaraugus","ShortName":"CATT","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":32,"County":"Chautauqua","ShortName":"CHAU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":33,"County":"Chemung","ShortName":"CHEM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":34,"County":"Erie","ShortName":"ERIE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":35,"County":"Genesee","ShortName":"GENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.587","ModifiedBy":null,"ModifiedDate":null},{"CountyId":36,"County":"Livingston","ShortName":"LIVI","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":37,"County":"Monroe","ShortName":"MONR","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":38,"County":"Niagara","ShortName":"NIAG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":39,"County":"Ontario","ShortName":"ONTA","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":40,"County":"Orleans","ShortName":"ORLE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":41,"County":"Schuyler","ShortName":"SCHU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":42,"County":"Seneca","ShortName":"SENE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":43,"County":"Steuben","ShortName":"STEU","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":44,"County":"Wayne","ShortName":"WAYN","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":45,"County":"Wyoming","ShortName":"WYOM","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":46,"County":"Yates","ShortName":"YATE","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":47,"County":"Broome","ShortName":"BROO","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.59","ModifiedBy":null,"ModifiedDate":null},{"CountyId":48,"County":"Chenango","ShortName":"CHEN","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":49,"County":"Cortland","ShortName":"CORT","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":50,"County":"Delaware","ShortName":"DELA","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":51,"County":"Herkimer","ShortName":"HERK","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":52,"County":"Jefferson","ShortName":"JEFF","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.593","ModifiedBy":null,"ModifiedDate":null},{"CountyId":53,"County":"Lewis","ShortName":"LEWI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":54,"County":"Madison","ShortName":"MADI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":55,"County":"Oneida","ShortName":"ONEI","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":56,"County":"Onondaga","ShortName":"ONON","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":57,"County":"Oswego","ShortName":"OSWE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":58,"County":"Otsego","ShortName":"OTSE","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":59,"County":"St. Lawrence","ShortName":"ST L","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":60,"County":"Cayuga","ShortName":"CAYU","ZoneNo":2,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":61,"County":"Tioga","ShortName":"TIOG","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.597","ModifiedBy":null,"ModifiedDate":null},{"CountyId":62,"County":"Tompkins","ShortName":"TOMP","ZoneNo":3,"IsActive":true,"CreatedBy":null,"CreatedDate":"2019-11-25T07:05:29.6","ModifiedBy":null,"ModifiedDate":null}],"name":"countyzone","schema":[{"columnName":"CountyId","dataType":"int","maxLenght":null,"isRequired":true},{"columnName":"County","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ShortName","dataType":"nvarchar","maxLenght":10,"isRequired":false},{"columnName":"ZoneNo","dataType":"int","maxLenght":null,"isRequired":false},{"columnName":"IsActive","dataType":"bit","maxLenght":null,"isRequired":false},{"columnName":"CreatedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"CreatedDate","dataType":"datetime","maxLenght":null,"isRequired":false},{"columnName":"ModifiedBy","dataType":"nvarchar","maxLenght":50,"isRequired":false},{"columnName":"ModifiedDate","dataType":"datetime","maxLenght":null,"isRequired":false}]}
127
* configure continueOnStepFailure = true
0
128
Then status 200
0
129
And def values = response.values
0
130
* configure continueOnStepFailure = true
0
187
* def countyData = karate.jsonPath(values, "$[?(@.CountyId == '" + CountyId + "')]")
0
188
* def countyZone = countyData[0].ZoneNo
0
189
And print countyZone
0
19:26:22.573 [print] 1
190
Given path '/internalapi/api/licensing/renewal/save'
0
191
* def dbSts = db.cleanHeap()
297
192
And header authorization = 'Bearer ' + strToken
1
193
And header Content-Type = 'application/json; charset=utf-8'
0
194
And header Accept = 'application/json; text/plain;*/*'
0
195
And configure continueOnStepFailure = true
0
196
And request {"mainLicenseId":'#(licenseId)',"associated":[],"notQualifiedApplication":'#(notQualifiedApplication)',"NotQualifiedComments":'#(notQlfdAppMessage)'}
0
197
When method Post
182
19:26:22.872 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/renewal/save 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > Content-Length: 108 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"mainLicenseId":"0111-22-129125","associated":[],"notQualifiedApplication":false,"NotQualifiedComments":""} 19:26:23.053 response time in milliseconds: 181 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:56:19 GMT 2 < Content-Length: 170 [{"appId":13865,"formId":1167,"childAppId":null,"mainApplicationId":"RE-22-106369-01","childApplicationId":null,"licensePermitTypeId":40,"description":"Restaurant-Beer"}]
198
* configure continueOnStepFailure = true
0
199
Then status 200
0
200
* def description = response[0].description
0
201
* def appId = response[0].appId
0
202
* def formId = response[0].formId
0
203
* def ApplicationId = response[0].mainApplicationId
0
204
And print ApplicationId
0
19:26:23.054 [print] RE-22-106369-01
205
And match ApplicationId contains 'RE-'
0
207
* def currentYear = '-'+getYearFunc()+'-'
1
208
And match ApplicationId contains currentYear
0
921
* call read('LicensesCommonMethods.feature@FillAndSaveApplicantInformationPage') {}
666
>>
karate.UseCases.LicensesCommonMethods
180
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
700
* def getDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
709
Given path '/internalapi/api/licensing/app/static/applicantinfo/save/'+appId
0
710
And header Content-Type = 'application/json; charset=utf-8'
0
712
* def autoFirstName = firstName + getDate()
0
713
* def legalName = autoFirstName + lastName
0
714
And header Accept = 'application/json; text/plain;*/*'
0
715
And header authorization = 'Bearer ' + strToken
0
716
And request {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":'#(indOrgCode)',"corporateStructure":'#(CorporateStructureDropDownCode)',"firstName":'#(autoFirstName)',"lastName":'#(lastName)',"middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":'#(legalName)',"id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":'#(IndOrgSelectionDropDown)',"corporateStructureText":'#(CorporateStructureDropDown)',"isIndividual":'#(isIndStatus)'},"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":'#(Address1)',"addressLine2":'#(Address2)',"city":'#(CityName)',"stateId":'#(stateCode)',"county":'#(CountyName)',"zipCode":'#(zipCode)',"zip4":'#(postalCode)',"street":null,"telephoneNumber":null,"country":'#(countryName)',"addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":'#(CityName)',"countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":'#(emailId)',"confirmEmail":'#(emailId)',"phones":[{"phoneType":"2","phoneTypeText":"Office","phone":'#(PhoneNumber)',"countryCode":'#(countryCode)',"phoneExtension":'#(PhoneExtn)',"phoneId":0}],"id":0],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}}
0
717
When method post
178
19:26:23.544 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/applicantinfo/save/13865 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2167 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"businessInfo":{"website":null,"businessEntity":{"individualOrganization":1,"corporateStructure":1,"firstName":"Automation20221115192623","lastName":"Automation","middleName":"AutoMidName","suffix":"1","ssn":"","fein":"","legalName":"Automation20221115192623Automation","id":0,"isEmployeeForSoleProprietor":null,"individualOrganizationText":"Individual","corporateStructureText":"Individual","isIndividual":true},"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"3","phoneTypeText":"Mobile","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0,"isLicensed":false,"isAssociated":false},"premisesInfo":{"dba":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneType":"2","phoneTypeText":"Office","phone":"999-999-9999","countryCode":"+91","phoneExtension":1234,"phoneId":0}],"id":0},"id":0},"applicantDetail":{"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"applicantStatement":{"nameOfApplicant":null,"date":null,"title":null,"signature":null,"id":0},"id":0,"isPhysicalChange":null}} 19:26:23.721 response time in milliseconds: 177 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:56:21 GMT 1 < Content-Length: 2187 {"businessInfo":{"id":0,"website":null,"isLicensed":true,"isAssociated":false,"businessEntity":{"id":0,"individualOrganization":"1","corporateStructure":1,"isEmployeeForSoleProprietor":null,"firstName":"Automation20221115192623","lastName":"Automation","middleName":null,"ssn":"","fein":"","legalName":"Automation20221115192623Automation","suffix":"1","corporateStructureText":"Individual","individualOrganizationText":"Individual","isIndividual":true},"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":0,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":0,"phoneType":3,"countryCode":"+91","phone":"999-999-9999","phoneExtension":"1234"}]}},"premisesInfo":{"id":0,"dba":null,"countyId":0,"countyName":null,"isDbaSearched":null,"isPremisesRequired":null,"licensePermitID":null,"address":{"addressId":0,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":0,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[{"phoneId":0,"phoneType":2,"countryCode":"+91","phone":"999-999-9999","phoneExtension":"1234"}]}},"applicantDetail":{"id":0,"masterFileID":null,"mfExpDate":null,"certificateNysTax":null,"certIssueDate":null,"isPhysicalChange":null,"applicantStatement":{"id":0,"nameOfApplicant":null,"title":null,"signature":null,"date":null}}}
718
Then status 200
0
922
* call read('LicensesCommonMethods.feature@FillAndSaveRepresentativePage') {}
683
>>
karate.UseCases.LicensesCommonMethods
152
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Representative *********************
790
Given path '/internalapi/api/licensing/app/static/rep/save/'+appId
0
791
And header authorization = 'Bearer ' + strToken
0
792
And request {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":'#(CountyName)',"city":'#(CityName)',"zipCode":"10011","country":"United States (US)","stateName":'#(CityName)',"countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""}
0
793
When method post
150
19:26:24.257 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/rep/save/13865 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 897 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"id":0,"contactType":"1","otherContactType":null,"selfCertified":null,"nysRegistrationNumber":null,"areYouBeingCompensated":null,"otherDescription":"Test Desc","subjectOfAppearance":null,"compensationType":null,"address":{"addressLine1":"1 wall street","addressLine2":"","county":"New York","city":"New York","zipCode":"10011","country":"United States (US)","stateName":"New York","countryId":229,"stateId":40},"isSelfCertifiedApplication":null,"person":{"personId":"0","isIndividualsPartnersAssociatedWithEntity":"","firstName":"Automation","middleName":"","lastName":"Automation","suffix":"","socialSecurityNo":"","birthDate":"","email":"","age":"","choosedEntity":""},"communication":{"email":"sbandi@svam.com","confirmEmail":"sbandi@svam.com","phones":[],"id":0},"phoneDetails":{"phoneType":"","countryCode":"","phone":"","phoneExtension":"","phoneId":0},"contactTypeText":"","isLicensed":""} 19:26:24.407 response time in milliseconds: 150 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:56:21 GMT 1 < Content-Length: 4 true
794
Then status 200
0
795
And def serverResponse = response
0
923
* call read('RenewalCommonMethods.feature@SaveAssociatedPrincipal') {}
539
>>
karate.UseCases.RenewalCommonMethods
331
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
1
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
0
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
464
Given path '/internalapi/api/licensing/app/static/principal/'+appId
0
466
And header Content-Type = 'application/json; charset=utf-8'
0
467
And header Accept = 'application/json; text/plain;*/*'
0
468
And header authorization = 'Bearer ' + strToken
0
469
And request {}
0
470
When method get
150
19:26:24.614 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/13865 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:26:24.763 response time in milliseconds: 149 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:56:22 GMT 1 < Content-Length: 1388 {"entities":[],"principals":[{"principalId":3287,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":true,"isFingerprintsApproved":true,"percentageOfOwners":20.0,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","entities":null,"numberOfShares":"","isSignature":false,"isRemove":false,"date":"2022-11-15T00:00:00","convictedOfCrime":"1","title":"15","isLicensed":true,"isAssociated":true,"person":{"personId":5580,"firstName":"Automation20221115192546","middleName":"AutoMidName","lastName":"AutoLastName","suffix":"1","socialSecurityNo":"","birthDate":"2022-11-15T00:00:00","serialNo":0,"age":0,"choosedEntity":[]},"address":{"addressId":29351,"appId":null,"addressLine1":"Address1","addressLine2":"Address2","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25263,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
471
Then status 200
0
472
* def personResponse = response
0
473
* def principalId = personResponse.principals[0].principalId
0
474
* def personId = personResponse.principals[0].person.personId
0
475
* def licFirstName = personResponse.principals[0].person.firstName
0
476
* def licLastName = personResponse.principals[0].person.lastName
0
477
* def licCommID = personResponse.principals[0].communication.id
0
478
* def licEmailID = personResponse.principals[0].communication.email
0
479
* def licAddressId = personResponse.principals[0].address.addressId
0
480
Given path '/internalapi/api/licensing/app/static/principal/save/'+appId
0
482
And header Content-Type = 'application/json; charset=utf-8'
0
483
* def getDate1 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yyyyMMddHHmmss'); var date = new java.util.Date(); return sdf.format(date); }
492
* def prncipalName = 'AutoRenewal'+getDate1()
0
494
And header Accept = 'application/json; text/plain;*/*'
0
495
And header authorization = 'Bearer ' + strToken
0
498
And request {"entities":[],"principals":[{"principalId":'#(principalId)',"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":true,\"isNewPrincipal\":false}","entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":'#(personId)',"firstName":'#(licFirstName)',"middleName":"","lastName":'#(licLastName)',"suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":null},"address":{"addressId":'#(licAddressId)',"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":'#(licCommID)',"email":'#(licEmailID)',"confirmEmail":'#(licEmailID)',"phones":[]}},{"principalId":0,"convictedOfCrime":"","percentageOfOwners":"","isFingerprintRequired":"","isFingerprintsApproved":"","title":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"Test Address1","addressLine2":"","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":'#(licEmailID)',"confirmEmail":'#(licEmailID)'},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]}
0
499
When method post
178
19:26:24.765 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/static/principal/save/13865 2 > Content-Type: application/json; charset=utf-8 2 > Accept: application/json; text/plain;*/* 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 2220 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"entities":[],"principals":[{"principalId":3287,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":true,\"isNewPrincipal\":false}","entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":5580,"firstName":"Automation20221115192546","middleName":"","lastName":"AutoLastName","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":null},"address":{"addressId":29351,"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25263,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}},{"principalId":0,"convictedOfCrime":"","percentageOfOwners":"","isFingerprintRequired":"","isFingerprintsApproved":"","title":"","numberOfShares":"","isSignature":"","date":"","address":{"addressLine1":"Test Address1","addressLine2":"","stateId":40,"county":"New York","city":"New York","zipCode":"12345","zip4":"1234","country":"United States (US)","stateName":"New York","countryId":229,"zip":"12345"},"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":"","age":"","choosedEntity":null,"ssnFormat":""},"isIndividualsPartnersAssociatedWithEntity":"","communication":{"id":0,"phones":[],"email":"automation@svam.com","confirmEmail":"automation@svam.com"},"disableFlags":"{\"isExisitingPrincipal\":false,\"isExistingPrincipalInBusiness\":false,\"isRenewalAndAmendPrincipal\":false,\"isNewPrincipal\":true}","isAssociated":false}]} 19:26:24.942 response time in milliseconds: 177 2 < 200 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:56:22 GMT 2 < Content-Length: 2326 {"entities":[],"principals":[{"principalId":3287,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":null,"entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":5580,"firstName":"Automation20221115192546","middleName":"","lastName":"AutoLastName","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":[]},"address":{"addressId":29351,"appId":null,"addressLine1":"","addressLine2":"","city":"","stateId":40,"county":"","zipCode":"","zip4":"","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":25263,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}},{"principalId":3288,"isIndividualsPartnersAssociatedWithEntity":false,"isFingerprintRequired":null,"isFingerprintsApproved":null,"percentageOfOwners":null,"dcjsFingerPrintStatus":null,"jsonEntities":null,"disableFlags":null,"entities":null,"numberOfShares":"","isSignature":null,"isRemove":false,"date":null,"convictedOfCrime":"","title":"","isLicensed":null,"isAssociated":null,"person":{"personId":0,"firstName":"Automation","middleName":"","lastName":"Renewal LicPermit","suffix":"","socialSecurityNo":"","birthDate":null,"serialNo":0,"age":null,"choosedEntity":[]},"address":{"addressId":0,"appId":null,"addressLine1":"Test Address1","addressLine2":"","city":"New York","stateId":40,"county":"New York","zipCode":"12345","zip4":"1234","street":null,"telephoneNumber":null,"country":"United States (US)","addressTypeId":null,"location":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"modifiedDate":null,"isActive":null,"showAndHide":null,"roomNo":null,"stateName":"New York","countryId":229,"serialNo":0,"addressType":null,"state":null},"communication":{"id":0,"email":"automation@svam.com","confirmEmail":"automation@svam.com","phones":[]}}]}
500
Then status 200
0
924
* call read('RenewalCommonMethods.feature@Fee_Check') {}
520
>>
karate.UseCases.RenewalCommonMethods
293
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
1
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
1
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
504
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
505
* def totalFees = licenseFees + fillingFees
0
506
And print totalFees
0
19:26:25.172 [print] 1060.0
507
And header Content-Type = 'application/json; charset=utf-8'
0
508
And header Accept = 'application/json; text/plain;*/*'
0
509
And header authorization = 'Bearer ' + strToken
0
510
And request {}
0
511
When method get
289
19:26:25.173 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13865 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:26:25.460 response time in milliseconds: 287 1 < 200 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:56:22 GMT 1 < Content-Length: 655 [{"licenseName":"Restaurant - Beer","applicationId":"RE-22-106369-01","applicationTypeId":2,"appFeesId":0,"appId":13865,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":30.00,"totalFees":0.0,"filingFees":0.0,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
512
Then status 200
0
513
And def serverResponse = response
0
514
* def licTerm = serverResponse[0].term
0
515
* def licFees = serverResponse[0].licensingFees+''
0
516
* def licTermDesc = serverResponse[0].termDesc
0
517
* def licFeesRefId = serverResponse[0].feesRefId
0
519
* def licAncillaryFees = serverResponse[0].ancillaryFees+''
0
520
* def licfilingFees = serverResponse[0].filingFees+''
0
521
* def licInitialFees = serverResponse[0].initialFees
0
522
* def licRenewalFees = serverResponse[0].renewalFees
0
925
* match licRenewalFees == 30
0
926
* call read('RenewalCommonMethods.feature@RenewalWaveFeesValidation') {}
1510
>>
karate.UseCases.RenewalCommonMethods
1202
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def date = getDate2()
1
17
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
26
* def effectiveDate = effectiveDateFunc()
0
30
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
39
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
50
* def fundDueDate = fundDueDateFunc(7)
0
53
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
64
* def conditionDefinedDateFunction =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.00"); var date = new java.util.Date(); return sdf.format(date); }
75
* def conditionDefinedDate = conditionDefinedDateFunction()
0
76
* def conditionDefinedDateFunctionwithAddedDate =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var date = new java.util.Date(); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
88
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
99
* def getRenewalReviewFunc =
0
function(reviewType){ if (reviewType == 'Send to Licensing Board'){ return 2; } else if (reviewType == 'Send to Full Board Preview Team'){ return 3; } else if (reviewType == 'Define Deficiencies'){ return 1; } }
1930
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
1931
And header Content-Type = 'application/json; charset=utf-8'
0
1932
And header Accept = 'application/json; text/plain;*/*'
0
1933
And header authorization = 'Bearer ' + strToken
0
1934
And request {}
0
1935
When method get
309
19:26:25.771 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13865 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:26:26.080 response time in milliseconds: 309 1 < 200 1 < Content-Length: 655 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:56:23 GMT [{"licenseName":"Restaurant - Beer","applicationId":"RE-22-106369-01","applicationTypeId":2,"appFeesId":0,"appId":13865,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":30.00,"totalFees":0.0,"filingFees":0.0,"ancillaryFees":0.00,"isFeesWaived":false,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":null,"isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
1936
Then status 200
0
1937
And def serverResponse = response
0
1938
* def licTerm = serverResponse[0].term
0
1939
* def licFees = serverResponse[0].licensingFees+'.00'
0
1940
* def licTermDesc = serverResponse[0].termDesc
0
1941
* def licFeesRefId = serverResponse[0].feesRefId
0
1942
* def licAncillaryFees = serverResponse[0].ancillaryFees+'.00'
0
1943
* def licfilingFees = serverResponse[0].filingFees+'.00'
0
1944
* def licInitialFees = serverResponse[0].initialFees | 0
2
1945
* def bndFees = serverResponse[0].bondFee | 0
0
1946
* def isBondRequired = serverResponse[0].isBondRequired
0
1947
And def totalFees1 = serverResponse[0].licensingFees+serverResponse[0].filingFees
0
1948
And print totalFees1
0
19:26:26.084 [print] 960.0
1949
* def tFees = totalFees1+'.00'
0
1950
* def underpaidAmount = totalFees1 | 0
0
1953
Given path '/internalapi/api/licensing/fees/details/save/'+appId+'/false'
0
1954
And header Content-Type = 'application/json'
0
1955
And header current-wfroleid = '3'
0
1956
* def futureDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis(7 )); return sdf.format(dayAfter); }
1967
* def futureDate = futureDateFunc()
2
1968
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1977
* def date = getDate2()
0
1979
And header Accept = 'application/json'
0
1980
And header authorization = 'Bearer ' + strToken
0
1981
And request {"checks":[],"appFees":{"appFees":[{"licenseName":'#(description)',"applicationId":'#(ApplicationId)',"applicationTypeId":2,"appFeesId":0,"appId":'#(appId)',"feesRefId":'#(licFeesRefId)',"initialFees":'#(licInitialFees)',"licensingFees":'#(licFees)',"amendmentFees":"0.00","renewalFees":'#(renewalFees)',"totalFees":'#(tFees)',"filingFees":'#(licfilingFees)',"ancillaryFees":'#(licAncillaryFees)',"isFeesWaived":true,"underPaymentAmount":'#(underpaidAmount)',"amountReceived":0,"waivedComment":"Waived fee for automation testing","isBondReceived":false,"isBondRequired":'#(isBondRequired)',"bondFee":'#(bndFees)',"term":'#(termInYears)',"termDesc":'#(termDesc)',"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}],"isFromReturnedCheck":false,"isBondRequired":false,"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":'#(fundDueDate)',"emailNotificationDetail":{"applicant":{"communicationId":0,"email":null,"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)'}},"notificationDetails":{"applicant":{"communicationId":0,"email":null,"appId":'#(appId)',"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":'#(appId)',"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":'#(appId)'},"taskId":null}
0
# {"checks":[],"appFees":{"appFees":[{"licenseName":"Restaurant - B ,"applicationId":"RE-22-106087-01" ,"applicationTypeId":2,"appFeesId":0,"appId":5812 ,"feesRefId":6042 ,"initialFees":0 ,"licensingFees":"480.00" ,"amendmentFees":"0.00","renewalFees":'#(renewalFees)',"totalFees":"510.00" ,"filingFees":"0.00" ,"ancillaryFees":"0.00" ,"isFeesWaived":true,"underPaymentAmount":510 ,"amountReceived":0,"waivedComment":"test" ,"isBondReceived":false,"isBondRequired":true ,"bondFee":1000 ,"term":3 ,"termDesc":"3 Year (s)" ,"seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}],"isFromReturnedCheck":false,"isBondRequired":false,"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":"2022-09-29T05:3,"emailNotificationDetail":{"applicant":{"communicationId":0,"email":null,"appId":5812 ,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":5812 ,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":5812 }},"notificationDetails":{"applicant":{"communicationId":0,"email":null,"appId":5812 ,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":5812 ,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":5812 },"taskId":null}
1983
When method post
311
19:26:26.089 request: 2 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/details/save/13865/false 2 > Content-Type: application/json; charset=UTF-8 2 > current-wfroleid: 3 2 > Accept: application/json 2 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 2 > Content-Length: 4885 2 > Host: slaleapqaapi.svam.com 2 > Connection: Keep-Alive 2 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 2 > Accept-Encoding: gzip,deflate {"checks":[],"appFees":{"appFees":[{"licenseName":"Restaurant-Beer","applicationId":"RE-22-106369-01","applicationTypeId":2,"appFeesId":0,"appId":13865,"feesRefId":6039,"initialFees":0.0,"licensingFees":"960.00","amendmentFees":"0.00","renewalFees":"30","totalFees":"960.00","filingFees":"0.00","ancillaryFees":"0.00","isFeesWaived":true,"underPaymentAmount":960.0,"amountReceived":0,"waivedComment":"Waived fee for automation testing","isBondReceived":false,"isBondRequired":true,"bondFee":1000.0,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}],"isFromReturnedCheck":false,"isBondRequired":false,"bondDetails":null,"isPaymentFailed":false,"isUnderpaid":false,"sendNotification":false,"fundDueDate":"2022-11-22T19:26:25.770Z","emailNotificationDetail":{"applicant":{"communicationId":0,"email":null,"appId":13865,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13865,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13865}},"notificationDetails":{"applicant":{"communicationId":0,"email":null,"appId":13865,"emailContactTypeId":1,"isChecked":true,"roleId":3,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"attorney":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"communityBoard":{"communicationId":0,"email":null,"appId":0,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"other":{"communicationId":0,"email":"","appId":13865,"emailContactTypeId":0,"isChecked":false,"roleId":null,"decision":null,"screen":null,"emails":null,"solicitorEmails":null,"notificatonTypeId":null,"acaType":null,"isInstantEmail":null,"userName":null,"userId":0,"currentRoleId":0,"tempGuid":null,"applicationStatus":null,"taskId":null,"taskRoleId":0,"taskDecision":null,"isActive":null,"createdBy":null,"createdDate":null,"modifiedBy":null,"wfRoleId":0,"modifiedDate":null},"isInstantEmail":false,"appId":13865},"taskId":null} 19:26:26.398 response time in milliseconds: 309 2 < 200 2 < Content-Length: 4 2 < Content-Type: application/json; charset=utf-8 2 < Server: Microsoft-IIS/10.0 2 < Strict-Transport-Security: max-age=2592000 2 < X-Powered-By: ASP.NET 2 < Date: Tue, 15 Nov 2022 13:56:23 GMT true
1984
Then status 200
0
# ********* SAVE Application Details To Save *********************
1987
Given path '/internalapi/api/licensing/app/save'
0
1988
And header authorization = 'Bearer ' + strToken
0
1989
And request {"isApproved":false,"appId":'#(appId)',"formID":'#(formId)',"applicationID":'#(ApplicationId)',"formName":'#(description)',"formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":'#(CityName)',"fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true}
1
1990
When method post
296
19:26:26.402 request: 3 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/save 3 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 3 > Content-Type: application/json; charset=UTF-8 3 > Content-Length: 30719 3 > Host: slaleapqaapi.svam.com 3 > Connection: Keep-Alive 3 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 3 > Accept-Encoding: gzip,deflate {"isApproved":false,"appId":13865,"formID":1167,"applicationID":"RE-22-106369-01","formName":"Restaurant-Beer","formType":{},"formTypeId":null,"applicationType":{},"applicationTypeId":null,"formCategory":{},"formCategoryId":null,"approvalFlag":null,"status":"","createdBy":"","createdDate":"","modifiedBy":"","sections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1842,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1843,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1851,"key":"","label":"Title","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2232,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2233,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2234,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1200,"sectionName":"","key":"0","label":"Applicant Statement","order":9,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1957,"key":"","label":"By what right does the applicant have possession of the premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1958,"key":"","label":"Explain","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1959,"key":"","label":"Do the terms of the lease or other arrangement require the applicant to provide any consideration based on a percentage of the receipts of the business?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1960,"key":"","label":"If yes, list the section\/page of the lease this information can be found","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1961,"key":"","label":"Does or will anyone other than the applicant\/principals share on a percentage basis or in any way in the receipts, losses, or deficiencies of the business to any extent whatsoever","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1226,"sectionName":"","key":"0","label":"Right to Premises","order":5,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1685,"key":"","label":"First Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1686,"key":"","label":"Middle Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1687,"key":"","label":"Last Name","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"1 wall street","fieldID":1697,"key":"","label":"Address Line 1\/ POB #","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1698,"key":"","label":"Address Line 2","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"New York","fieldID":1699,"key":"","label":"City","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1700,"key":"","label":"State\/Region","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"dropdown","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"10011","fieldID":1701,"key":"","label":"Zip\/Postal Code","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1754,"key":"","label":"Address","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1934,"key":"","label":"Nature of Interest","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1935,"key":"","label":"Date acquired","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1218,"sectionName":"","key":"0","label":"Other Interested","order":1,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1933,"key":"","label":"Signature","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1936,"key":"","label":"Date","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1239,"sectionName":"","key":"0","label":"Bulletin 254","order":10,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2053,"key":"","label":"Describe the area where the premises is to be located","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2054,"key":"","label":"State what the area is zoned for","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2055,"key":"","label":"Provide a description of the premises to be licensed. Describe all building\/structures that will be utilized in business operations including the number of floors in each.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2056,"key":"","label":"has the building\/premises been known by any other address?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2057,"key":"","label":"If yes, please Specify","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2058,"key":"","label":"has the premises to be licensed and or any other floor in the building been previously licensed or currently licensed to traffic in alcoholic beverages?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2059,"key":"","label":"What was the prior use of the premises to be licensed?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2060,"key":"","label":"Does the proposed location of the business comply with all state and local regulations and zoning codes?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2061,"key":"","label":"is there interior access to any other floor that will not be part of the licensed premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2062,"key":"","label":"if yes, list floor and means of access to each floor.","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2063,"key":"","label":"Does any other person have access to this area?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2064,"key":"","label":"where will the alcohol be stored","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2065,"key":"","label":"if applying for a farm winery license, special farm winery license or micro winery license, the premises must be located on a farm. In the box below, please provide a detailed description of the agricultural production that qualifies the premises as a farm","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1248,"sectionName":"","key":"0","label":"Premises Questionnaire","order":7,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1988,"key":"","label":"Will any other business of any kind be conducted on said premises?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1989,"key":"","label":"How many Employees?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1990,"key":"","label":"If answer is 0, provide explanation","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1991,"key":"","label":"Workers' Compensation Carrier Name and Policy Number?","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":1992,"key":"","label":"Disability Insurance Carrier name and policy Number","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2050,"key":"","label":"Check all activities the business will engage in","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1249,"sectionName":"","key":"0","label":"Method of Operation","order":8,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]},{"show":true,"repeat":false,"isEditable":false,"fields":[{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2072,"key":"","label":"Real Property","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":0,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2073,"key":"","label":"Purchase\/Contract Price of Business","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":1,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2074,"key":"","label":"Renovations\/Improvement Costs","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":2,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2075,"key":"","label":"Miscellaneous","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":3,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2076,"key":"","label":"Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":4,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2077,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":5,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2078,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":6,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2079,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":7,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2080,"key":"","label":"Total Cash","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":8,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2081,"key":"","label":"Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":9,"controlType":"label","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2082,"key":"","label":"Source of Funds","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":10,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2083,"key":"","label":"Personal Questionnaire attached","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":11,"controlType":"checkbox","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2084,"key":"","label":"Dollar Amount","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":12,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2085,"key":"","label":"Total Borrowed","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":13,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2086,"key":"","label":"Total Investment","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":14,"controlType":"textbox","defaultValue":"","format":"","isCalculatedField":false,"isEmptyField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""},{"dataSource":null,"show":true,"isSpecial":false,"sectionRepeatNo":1,"value":"","fieldID":2087,"key":"","label":"Have all investors been disclosed in this application","dataType":"text","required":false,"isSingleLine":true,"minLength":0,"maxLength":0,"order":15,"controlType":"radio","defaultValue":"","format":"","isCalculatedField":false,"fieldName":"","columnName":"","expression":"","dataSourceId":0,"trigger":"","metaData":null,"createdBy":"","modifiedBy":""}],"sectionID":1253,"sectionName":"","key":"0","label":"Financial Disclosure","order":6,"createdBy":"","createdDate":"","modifiedBy":"","tableName":"","isSpecial":false,"isMultipleAllowed":false,"sectionType":null,"sectionSubTypeId":null,"subSections":[],"sectionFieldOrders":[]}],"formVersionId":1231,"version":7,"licenseDescription":"","statusDescription":"Draft","appStatusId":1,"showApplicant":true,"showRepresentative":true,"showPrincipal":true,"showLandlord":true,"showVehicles":false,"showSchedule":false,"staticTabSequence":{"Applicant Information":0,"Principal":1,"Representative":2,"Landlord Identification":3,"Personal Questionnaire":4},"staticTaborder":["Applicant Information","Principal","Representative","Landlord Identification","Personal Questionnaire"],"showPQ":true} 19:26:26.696 response time in milliseconds: 294 3 < 200 3 < Content-Length: 49 3 < Content-Type: application/json; charset=utf-8 3 < Server: Microsoft-IIS/10.0 3 < Strict-Transport-Security: max-age=2592000 3 < X-Powered-By: ASP.NET 3 < Date: Tue, 15 Nov 2022 13:56:23 GMT {"appId":13865,"applicationId":"RE-22-106369-01"}
1991
Then status 200
0
1992
Given path '/internalapi/api/licensing/fees/licenses/get/'+appId
0
1993
And header Content-Type = 'application/json; charset=utf-8'
0
1994
And header Accept = 'application/json; text/plain;*/*'
0
1995
And header authorization = 'Bearer ' + strToken
0
1996
And request {}
0
1997
When method get
275
19:26:26.697 request: 4 > GET https://slaleapqaapi.svam.com/internalapi/api/licensing/fees/licenses/get/13865 4 > Content-Type: application/json; charset=utf-8 4 > Accept: application/json; text/plain;*/* 4 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 4 > Content-Length: 2 4 > Host: slaleapqaapi.svam.com 4 > Connection: Keep-Alive 4 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 4 > Accept-Encoding: gzip,deflate {} 19:26:26.971 response time in milliseconds: 274 4 < 200 4 < Content-Length: 688 4 < Content-Type: application/json; charset=utf-8 4 < Server: Microsoft-IIS/10.0 4 < Strict-Transport-Security: max-age=2592000 4 < X-Powered-By: ASP.NET 4 < Date: Tue, 15 Nov 2022 13:56:23 GMT [{"licenseName":"Restaurant - Beer","applicationId":"RE-22-106369-01","applicationTypeId":2,"appFeesId":3084,"appId":13865,"feesRefId":6039,"initialFees":0.0,"licensingFees":960.00,"amendmentFees":0.0,"renewalFees":30.00,"totalFees":0.0,"filingFees":0.0,"ancillaryFees":0.00,"isFeesWaived":true,"underPaymentAmount":0.0,"amountReceived":0.0,"waivedComment":"Waived fee for automation testing","isBondReceived":false,"isBondRequired":true,"bondFee":1000.00,"term":3,"termDesc":"3 Year (s)","seasonalStartDate":null,"seasonalEndDate":null,"isFeesCountBased":false,"isFeesUnitBased":false,"numOfUnits":0,"paymentDetails":[],"lateFee":0.00,"isFeesBarPerDay":null,"tempWinaryLicenseFee":null}]
1998
Then status 200
0
1999
And def serverResponse = response
0
2000
* def isFeesWaivedStatus = serverResponse[0].isFeesWaived
0
2001
* def waivedCommentSt = serverResponse[0].waivedComment
0
2002
* def waivedUnderPaymentAmount = serverResponse[0].underPaymentAmount
0
2003
* def waivedTotalFees = serverResponse[0].totalFees
0
2004
And match isFeesWaivedStatus == true
0
2005
And match waivedUnderPaymentAmount == 0
0
2006
And match waivedTotalFees == 0
0
2007
And match waivedCommentSt == 'Waived fee for automation testing'
0
929
* call read('LicensesCommonMethods.feature@SubmitLicenseAndValidateLicStatus') {expStatus:'Awaiting Review'}
10281
>>
karate.UseCases.LicensesCommonMethods
9227
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
1
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
# ********* Application SUBMIT *********************
1099
Given path '/internalapi/api/licensing/app/submit'
0
1100
And header authorization = 'Bearer ' + strToken
0
1101
And request {"appId":'#(appId)',"wfType":null}
0
1102
When method post
240
19:26:28.029 request: 1 > POST https://slaleapqaapi.svam.com/internalapi/api/licensing/app/submit 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=UTF-8 1 > Content-Length: 29 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {"appId":13865,"wfType":null} 19:26:28.268 response time in milliseconds: 239 1 < 200 1 < Content-Length: 121 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:56:25 GMT {"success":true,"submittedApps":[{"success":true,"taskId":0,"appId":13865,"applicationId":"RE-22-106369-01","error":""}]}
1103
Then status 200
0
1104
And def serverResponse = response
0
1105
And match response.success == true
0
1106
* call read('LicensesCommonMethods.feature@checkApplicationStatus') {}
8984
>>
karate.UseCases.LicensesCommonMethods
7517
3
* url BaseURL
0
4
* def config = { username: '#(dbUserName)', password:'#(dbUserPassword)', url: '#(dbQuery)',driverClassName: 'com.microsoft.sqlserver.jdbc.SQLServerDriver' }
0
5
* def DbUtils = Java.type('utils.DbUtils')
0
6
* def db = new DbUtils(config)
0
7
* def getDate2 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
16
* def fundDueDateFunc1 =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
27
* def date = getDate2()
0
28
* def getYearFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat('yy'); var date = new java.util.Date(); return sdf.format(date); }
37
* def fundDueDateFunc =
0
function(days) { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); var dayAfter = new java.util.Date(date.getTime() + java.util.concurrent.TimeUnit.DAYS.toMillis( days)); return sdf.format(dayAfter); }
48
* def fundDueDate = fundDueDateFunc(7)
1
49
* def licFeesDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
60
* def effectiveDateFunc =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
69
* def effectiveDate = effectiveDateFunc()
0
70
* def licDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); var date = new java.util.Date(); return sdf.format(date); }
82
* def EffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd"); var date = new java.util.Date(); return sdf.format(date); }
91
* def expectedEffDate =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'00:00:00"); var date = new java.util.Date(); return sdf.format(date); }
102
* def getDate3 =
0
function() { var SimpleDateFormat = Java.type('java.text.SimpleDateFormat'); var sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:00.000'Z'"); var date = new java.util.Date(); return sdf.format(date); }
1194
Given path '/internalapi/api/application/preview/'+appId
0
1195
* def dbSts = db.cleanHeap()
7352
1196
And header authorization = 'Bearer ' + strToken
0
1197
And header Content-Type = 'application/json; charset=utf-8'
0
1198
And header Accept = 'application/json; text/plain;*/*'
0
1199
And configure continueOnStepFailure = true
0
1200
And request {}
0
1201
When method get
161
19:26:37.084 request: 1 > GET https://slaleapqaapi.svam.com/internalapi/api/application/preview/13865 1 > authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6InRndXB0YUBzdmFtLmNvbSIsInN1YiI6InRndXB0YUBzdmFtLmNvbSIsIlJvbGVJZCI6IjEwNjkiLCJVc2VySWQiOiIxMDY5IiwianRpIjoiODZhMzljZGUtMDUzMS00MTQ2LWIwNDUtZTdkOGY2MzYwYTU3IiwiZXhwIjoxNjY4NTQ4OTcxLCJpc3MiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8iLCJhdWQiOiJodHRwczovL3NsYWxlYXBxYWFwaS5zdmFtLmNvbS9pbnRlcm5hbGFwaS8ifQ.NH4PAD04Xkh1zOtMwdB7mshSWSnBfBqkZKR1nxhvBNk 1 > Content-Type: application/json; charset=utf-8 1 > Accept: application/json; text/plain;*/* 1 > Content-Length: 2 1 > Host: slaleapqaapi.svam.com 1 > Connection: Keep-Alive 1 > User-Agent: Apache-HttpClient/4.5.13 (Java/1.8.0_321) 1 > Accept-Encoding: gzip,deflate {} 19:26:37.244 response time in milliseconds: 160 1 < 200 1 < Content-Length: 213 1 < Content-Type: application/json; charset=utf-8 1 < Server: Microsoft-IIS/10.0 1 < Strict-Transport-Security: max-age=2592000 1 < X-Powered-By: ASP.NET 1 < Date: Tue, 15 Nov 2022 13:56:34 GMT {"applicationId":"RE-22-106369-01","submitDate":"2022-11-15T08:56:25.517","licePermitType":{"isTempPermit":false},"appStatus":{"statusDescription":"Awaiting Review"},"isLicenseApplication":true,"isPreFilled":true}
1202
* configure continueOnStepFailure = true
0
1203
Then status 200
0
1204
And def licStatus = response.appStatus.statusDescription
0
1205
And print licStatus
0
19:26:37.244 [print] Awaiting Review
#* assert (licStatus == expStatus)
# (licStatus == 'Schedule 500 Foot Hearing')
1209
And match licStatus == '#(expStatus)'
1